• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/quagga/bgpd/

Lines Matching defs:rsclient

723 bgp_export_modifier (struct peer *rsclient, struct peer *peer,
736 info.peer = rsclient;
739 SET_FLAG (rsclient->rmap_type, PEER_RMAP_TYPE_EXPORT);
744 rsclient->rmap_type = 0;
757 bgp_import_modifier (struct peer *rsclient, struct peer *peer,
764 filter = &rsclient->filter[afi][safi];
1106 bgp_announce_check_rsclient (struct bgp_info *ri, struct peer *rsclient,
1117 filter = &rsclient->filter[afi][safi];
1124 if (from == rsclient)
1133 if (CHECK_FLAG (rsclient->af_sflags[afi][safi],
1148 if (IPV4_ADDR_SAME (&rsclient->remote_id,
1152 zlog (rsclient->log, LOG_DEBUG,
1154 rsclient->host,
1162 if (CHECK_FLAG (rsclient->af_cap[afi][safi], PEER_CAP_ORF_PREFIX_RM_ADV)
1163 && (CHECK_FLAG (rsclient->af_cap[afi][safi], PEER_CAP_ORF_PREFIX_SM_RCV)
1164 || CHECK_FLAG (rsclient->af_cap[afi][safi], PEER_CAP_ORF_PREFIX_SM_OLD_RCV)))
1165 if (rsclient->orf_plist[afi][safi])
1167 if (prefix_list_apply (rsclient->orf_plist[afi][safi], p) == PREFIX_DENY)
1172 if (bgp_output_filter (rsclient, p, riattr, afi, safi) == FILTER_DENY)
1175 zlog (rsclient->log, LOG_DEBUG,
1177 rsclient->host,
1185 if (aspath_loop_check (riattr->aspath, rsclient->as))
1188 zlog (rsclient->log, LOG_DEBUG,
1190 rsclient->host, rsclient->as);
1210 memcpy (&attr->extra->mp_nexthop_global_in, &rsclient->nexthop.v4,
1213 memcpy (&attr->nexthop, &rsclient->nexthop.v4, IPV4_MAX_BYTELEN);
1220 memcpy (&attr->extra->mp_nexthop_global, &rsclient->nexthop.v6_global,
1233 if ( CHECK_FLAG (rsclient->af_flags[afi][safi],
1246 if (rsclient->shared_network && from->shared_network &&
1247 (rsclient->ifindex == from->ifindex))
1256 else if (rsclient->shared_network
1257 && IN6_IS_ADDR_LINKLOCAL (&rsclient->nexthop.v6_local))
1259 memcpy (&attre->mp_nexthop_local, &rsclient->nexthop.v6_local,
1273 if (rsclient->sort == BGP_PEER_EBGP
1274 && peer_af_flag_check (rsclient, afi, safi, PEER_FLAG_REMOVE_PRIVATE_AS)
1281 info.peer = rsclient;
1284 SET_FLAG (rsclient->rmap_type, PEER_RMAP_TYPE_OUT);
1291 rsclient->rmap_type = 0;
1511 struct peer *rsclient = bgp_node_table (rn)->owner;
1518 if (CHECK_FLAG (rsclient->sflags, PEER_STATUS_GROUP))
1520 if (rsclient->group)
1521 for (ALL_LIST_ELEMENTS (rsclient->group->peer, node, nnode, rsclient))
1537 bgp_process_announce_selected (rsclient, new_select, rn,
1551 bgp_process_announce_selected (rsclient, new_select, rn, afi, safi);
1844 bgp_update_rsclient (struct peer *rsclient, afi_t afi, safi_t safi,
1859 /* Do not insert announces from a rsclient into its own 'bgp_table'. */
1860 if (peer == rsclient)
1864 rn = bgp_afi_node_get (rsclient->rib[afi][safi], afi, safi, p, prd);
1872 if (aspath_loop_check (attr->aspath, rsclient->as) > rsclient->allowas_in[afi][safi])
1880 && IPV4_ADDR_SAME (&rsclient->remote_id, &attr->extra->originator_id))
1891 bgp_export_modifier (rsclient, peer, p, &new_attr, afi, safi) == RMAP_DENY)
1900 if (bgp_import_modifier (rsclient, peer, p, &new_attr, afi, safi) == RMAP_DENY)
1942 p->prefixlen, rsclient->host);
1959 p->prefixlen, rsclient->host);
1987 p->prefixlen, rsclient->host);
2023 p->prefixlen, rsclient->host, reason);
2034 bgp_withdraw_rsclient (struct peer *rsclient, afi_t afi, safi_t safi,
2042 if (rsclient == peer)
2045 rn = bgp_afi_node_get (rsclient->rib[afi][safi], afi, safi, p, prd);
2398 struct peer *rsclient;
2409 for (ALL_LIST_ELEMENTS (bgp->rsclient, node, nnode, rsclient))
2411 if (CHECK_FLAG (rsclient->af_flags[afi][safi], PEER_FLAG_RSERVER_CLIENT))
2412 bgp_update_rsclient (rsclient, afi, safi, attr, peer, p, type,
2428 struct peer *rsclient;
2434 for (ALL_LIST_ELEMENTS (bgp->rsclient, node, nnode, rsclient))
2436 if (CHECK_FLAG (rsclient->af_flags[afi][safi], PEER_FLAG_RSERVER_CLIENT))
2437 bgp_withdraw_rsclient (rsclient, afi, safi, peer, p, type, sub_type, prd, tag);
2581 struct bgp_table *table, int rsclient)
2589 table = (rsclient) ? peer->rib[afi][safi] : peer->bgp->rib[afi][safi];
2602 if ( (rsclient) ?
2651 bgp_soft_reconfig_table_rsclient (struct peer *rsclient, afi_t afi,
2658 table = rsclient->bgp->rib[afi][safi];
2666 bgp_update_rsclient (rsclient, afi, safi, ain->attr, ain->peer,
2672 bgp_soft_reconfig_rsclient (struct peer *rsclient, afi_t afi, safi_t safi)
2678 bgp_soft_reconfig_table_rsclient (rsclient, afi, safi, NULL, NULL);
2681 for (rn = bgp_table_top (rsclient->bgp->rib[afi][safi]); rn;
2690 bgp_soft_reconfig_table_rsclient (rsclient, afi, safi, table, &prd);
2835 struct bgp_table *table, struct peer *rsclient,
2842 table = (rsclient) ? rsclient->rib[afi][safi] : peer->bgp->rib[afi][safi];
2925 struct peer *rsclient;
2957 for (ALL_LIST_ELEMENTS (peer->bgp->rsclient, node, nnode, rsclient))
2958 if (CHECK_FLAG(rsclient->af_flags[afi][safi],
2960 bgp_clear_route_table (peer, afi, safi, NULL, rsclient, purpose);
3265 bgp_static_withdraw_rsclient (struct bgp *bgp, struct peer *rsclient,
3271 rn = bgp_afi_node_get (rsclient->rib[afi][safi], afi, safi, p, NULL);
3292 bgp_static_update_rsclient (struct peer *rsclient, struct prefix *p,
3308 bgp = rsclient->bgp;
3314 rn = bgp_afi_node_get (rsclient->rib[afi][safi], afi, safi, p, NULL);
3325 /* Apply network route-map for export to this rsclient. */
3329 info.peer = rsclient;
3332 SET_FLAG (rsclient->rmap_type, PEER_RMAP_TYPE_EXPORT);
3333 SET_FLAG (rsclient->rmap_type, PEER_RMAP_TYPE_NETWORK);
3337 rsclient->rmap_type = 0;
3346 bgp_static_withdraw_rsclient (bgp, rsclient, p, afi, safi);
3361 if (bgp_import_modifier (rsclient, bgp->peer_self, p, &new_attr, afi, safi)
3366 zlog (rsclient->log, LOG_DEBUG,
3369 p->prefixlen, rsclient->host);
3377 bgp_static_withdraw_rsclient (bgp, rsclient, p, afi, safi);
3573 struct peer *rsclient;
3578 for (ALL_LIST_ELEMENTS (bgp->rsclient, node, nnode, rsclient))
3580 if (CHECK_FLAG (rsclient->af_flags[afi][safi], PEER_FLAG_RSERVER_CLIENT))
3581 bgp_static_update_rsclient (rsclient, p, bgp_static, afi, safi);
3647 bgp_check_local_routes_rsclient (struct peer *rsclient, afi_t afi, safi_t safi)
3654 bgp = rsclient->bgp;
3661 bgp_static_update_rsclient (rsclient, p, bgp_static,
10620 "show ip bgp view WORD rsclient (A.B.C.D|X:X::X:X)",
10662 "show ip bgp rsclient (A.B.C.D|X:X::X:X)",
10671 "show bgp view WORD ipv4 (unicast|multicast) rsclient (A.B.C.D|X:X::X:X)",
10719 "show bgp ipv4 (unicast|multicast) rsclient (A.B.C.D|X:X::X:X)",
10730 "show ip bgp view WORD rsclient (A.B.C.D|X:X::X:X) A.B.C.D",
10793 "show ip bgp rsclient (A.B.C.D|X:X::X:X) A.B.C.D",
10803 "show bgp view WORD ipv4 (unicast|multicast) rsclient (A.B.C.D|X:X::X:X) A.B.C.D",
10872 "show bgp ipv4 (unicast|multicast) rsclient (A.B.C.D|X:X::X:X) A.B.C.D",
10884 "show ip bgp view WORD rsclient (A.B.C.D|X:X::X:X) A.B.C.D/M",
10947 "show ip bgp rsclient (A.B.C.D|X:X::X:X) A.B.C.D/M",
10957 "show bgp view WORD ipv4 (unicast|multicast) rsclient (A.B.C.D|X:X::X:X) A.B.C.D/M",
11026 "show bgp ipv4 (unicast|multicast) rsclient (A.B.C.D|X:X::X:X) A.B.C.D/M",
11254 "show bgp view WORD rsclient (A.B.C.D|X:X::X:X)",
11295 "show bgp rsclient (A.B.C.D|X:X::X:X)",
11303 "show bgp view WORD ipv6 (unicast|multicast) rsclient (A.B.C.D|X:X::X:X)",
11351 "show bgp ipv6 (unicast|multicast) rsclient (A.B.C.D|X:X::X:X)",
11362 "show bgp view WORD rsclient (A.B.C.D|X:X::X:X) X:X::X:X",
11424 "show bgp rsclient (A.B.C.D|X:X::X:X) X:X::X:X",
11433 "show bgp view WORD ipv6 (unicast|multicast) rsclient (A.B.C.D|X:X::X:X) X:X::X:X",
11502 "show bgp ipv6 (unicast|multicast) rsclient (A.B.C.D|X:X::X:X) X:X::X:X",
11514 "show bgp view WORD rsclient (A.B.C.D|X:X::X:X) X:X::X:X/M",
11576 "show bgp rsclient (A.B.C.D|X:X::X:X) X:X::X:X/M",
11585 "show bgp view WORD ipv6 (unicast|multicast) rsclient (A.B.C.D|X:X::X:X) X:X::X:X/M",
11654 "show bgp ipv6 (unicast|multicast) rsclient (A.B.C.D|X:X::X:X) X:X::X:X/M",