• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/bgpd/

Lines Matching defs:binfo

105 bgp_info_free (struct bgp_info *binfo)
107 if (binfo->attr)
108 bgp_attr_unintern (binfo->attr);
110 if (binfo->damp_info)
111 bgp_damp_info_free (binfo->damp_info, 0);
113 XFREE (MTYPE_BGP_ROUTE, binfo);
1299 struct bgp_info binfo;
1339 binfo.peer = bgp->peer_self;
1340 binfo.attr = &attr;
1343 RMAP_BGP, &binfo);
3750 struct bgp_info *binfo, int display, safi_t safi)
3758 if (binfo->suppress)
3760 else if (! CHECK_FLAG (binfo->flags, BGP_INFO_HISTORY))
3766 if (CHECK_FLAG (binfo->flags, BGP_INFO_HISTORY))
3768 else if (CHECK_FLAG (binfo->flags, BGP_INFO_DAMPED))
3770 else if (CHECK_FLAG (binfo->flags, BGP_INFO_SELECTED))
3776 if ((binfo->peer->as) && (binfo->peer->as == binfo->peer->local_as))
3788 attr = binfo->attr;
3908 struct bgp_info *binfo, int display, safi_t safi)
3917 if (binfo->suppress)
3919 else if (! CHECK_FLAG (binfo->flags, BGP_INFO_HISTORY))
3925 if (CHECK_FLAG (binfo->flags, BGP_INFO_HISTORY))
3927 else if (CHECK_FLAG (binfo->flags, BGP_INFO_DAMPED))
3929 else if (CHECK_FLAG (binfo->flags, BGP_INFO_SELECTED))
3935 if ((binfo->peer->as) && (binfo->peer->as == binfo->peer->local_as))
3947 attr = binfo->attr;
3974 label = decode_label (binfo->tag);
3986 struct bgp_info *binfo, int display, safi_t safi)
3995 if (binfo->suppress)
3997 else if (! CHECK_FLAG (binfo->flags, BGP_INFO_HISTORY))
4003 if (CHECK_FLAG (binfo->flags, BGP_INFO_HISTORY))
4005 else if (CHECK_FLAG (binfo->flags, BGP_INFO_DAMPED))
4007 else if (CHECK_FLAG (binfo->flags, BGP_INFO_SELECTED))
4020 len = vty_out (vty, "%s", binfo->peer->host);
4027 vty_out (vty, "%s ", bgp_damp_reuse_time_vty (vty, binfo));
4030 attr = binfo->attr;
4053 struct bgp_info *binfo, int display, safi_t safi)
4062 bdi = binfo->damp_info;
4065 if (binfo->suppress)
4067 else if (! CHECK_FLAG (binfo->flags, BGP_INFO_HISTORY))
4073 if (CHECK_FLAG (binfo->flags, BGP_INFO_HISTORY))
4075 else if (CHECK_FLAG (binfo->flags, BGP_INFO_DAMPED))
4077 else if (CHECK_FLAG (binfo->flags, BGP_INFO_SELECTED))
4090 len = vty_out (vty, "%s", binfo->peer->host);
4107 if (CHECK_FLAG (binfo->flags, BGP_INFO_DAMPED)
4108 && ! CHECK_FLAG (binfo->flags, BGP_INFO_HISTORY))
4109 vty_out (vty, "%s ", bgp_damp_reuse_time_vty (vty, binfo));
4114 attr = binfo->attr;
4134 struct bgp_info *binfo, afi_t afi, safi_t safi)
4142 attr = binfo->attr;
4158 || CHECK_FLAG (binfo->peer->af_flags[afi][safi], PEER_FLAG_REFLECTOR_CLIENT)
4159 || CHECK_FLAG (binfo->peer->af_flags[afi][safi], PEER_FLAG_RSERVER_CLIENT)
4160 || CHECK_FLAG (binfo->flags, BGP_INFO_HISTORY)
4161 || CHECK_FLAG (binfo->flags, BGP_INFO_DAMPED))
4168 if (CHECK_FLAG (binfo->peer->af_flags[afi][safi], PEER_FLAG_REFLECTOR_CLIENT))
4170 if (CHECK_FLAG (binfo->peer->af_flags[afi][safi], PEER_FLAG_RSERVER_CLIENT))
4172 if (CHECK_FLAG (binfo->flags, BGP_INFO_HISTORY))
4174 else if (CHECK_FLAG (binfo->flags, BGP_INFO_DAMPED))
4195 if (binfo->peer == bgp->peer_self)
4203 if (! CHECK_FLAG (binfo->flags, BGP_INFO_VALID))
4205 else if (binfo->igpmetric)
4206 vty_out (vty, " (metric %d)", binfo->igpmetric);
4207 vty_out (vty, " from %s", sockunion2str (&binfo->peer->su, buf, SU_ADDRSTRLEN));
4211 vty_out (vty, " (%s)", inet_ntop (AF_INET, &binfo->peer->remote_id, buf1, BUFSIZ));
4240 if (! CHECK_FLAG (binfo->flags, BGP_INFO_HISTORY))
4243 if (binfo->peer != bgp->peer_self)
4245 if (binfo->peer->as == binfo->peer->local_as)
4249 (bgp_confederation_peers_check(bgp, binfo->peer->as) ? "confed-external" : "external"));
4251 else if (binfo->sub_type == BGP_ROUTE_AGGREGATE)
4253 else if (binfo->type != ZEBRA_ROUTE_BGP)
4261 if (CHECK_FLAG (binfo->flags, BGP_INFO_SELECTED))
4296 if (binfo->damp_info)
4297 bgp_damp_info_vty (vty, binfo);
4300 vty_out (vty, " Last update: %s", ctime (&binfo->uptime));
4419 struct bgp_info binfo;
4424 binfo.peer = ri->peer;
4425 binfo.attr = &dummy_attr;
4427 ret = route_map_apply (rmap, &rn->p, RMAP_BGP, &binfo);
4664 struct bgp_info binfo;
4669 binfo.peer = ri->peer;
4670 binfo.attr = &dummy_attr;
4672 ret = route_map_apply (rmap, &rn->p, RMAP_BGP, &binfo);