/dports/net/quagga/quagga-1.2.4/zebra/ |
H A D | rt_socket.c | 78 int nexthop_num = 0; in kernel_rtm_ipv4() local 175 nexthop_num++; in kernel_rtm_ipv4() 213 if (nexthop_num == 0 && IS_ZEBRA_DEBUG_KERNEL) in kernel_rtm_ipv4() 254 int nexthop_num = 0; in kernel_rtm_ipv6() local 344 nexthop_num, error); in kernel_rtm_ipv6() 350 nexthop_num++; in kernel_rtm_ipv6() 354 if (nexthop_num == 0) in kernel_rtm_ipv6()
|
H A D | zebra_fpm_netlink.c | 332 int nexthop_num = 0; in netlink_route_info_encode() local 406 for (nexthop_num = 0; nexthop_num < ri->num_nhs; nexthop_num++) in netlink_route_info_encode() 408 nhi = &ri->nhs[nexthop_num]; in netlink_route_info_encode()
|
H A D | rt_netlink.c | 840 rib->nexthop_num = 0; in netlink_routing_table() 873 if (rib->nexthop_num == 0) in netlink_routing_table() 1057 rib->nexthop_num = 0; in netlink_route_change() 1681 int nexthop_num; in netlink_route_multipath() local 1764 nexthop_num = 0; in netlink_route_multipath() 1778 nexthop_num++; in netlink_route_multipath() 1784 nexthop_num = 0; in netlink_route_multipath() 1805 nexthop_num++; in netlink_route_multipath() 1821 nexthop_num = 0; in netlink_route_multipath() 1836 nexthop_num++; in netlink_route_multipath() [all …]
|
/dports/net/quagga/quagga-1.2.4/bgpd/ |
H A D | bgp_nht.c | 261 u_char nexthop_num; in bgp_parse_nexthop_update() local 301 nexthop_num = stream_getc (s); in bgp_parse_nexthop_update() 309 metric, nexthop_num); in bgp_parse_nexthop_update() 315 if(nexthop_num != bnc->nexthop_num) in bgp_parse_nexthop_update() 318 if (nexthop_num) in bgp_parse_nexthop_update() 322 bnc->nexthop_num = nexthop_num; in bgp_parse_nexthop_update() 324 for (i = 0; i < nexthop_num; i++) in bgp_parse_nexthop_update()
|
/dports/net/quagga/quagga-1.2.4/nhrpd/ |
H A D | nhrp_route.c | 126 api.nexthop_num = 1; in nhrp_route_announce() 147 api.metric, api.nexthop_num, ifp->name); in nhrp_route_announce() 165 api.nexthop_num = 1; in nhrp_route_announce() 186 api.metric, api.nexthop_num, ifp->name); in nhrp_route_announce() 201 unsigned char message, nexthop_num, ifindex_num; in nhrp_route_read() local 234 nexthop_num = stream_getc(s); in nhrp_route_read() 235 for (i = 0; i < nexthop_num; i++) { in nhrp_route_read()
|
/dports/net/olsrd/olsrd-0.9.8/lib/quagga/src/ |
H A D | parse.c | 68 if(r->nexthop_num) in free_zroute() 111 r->nexthop_num = *pnt++; in zparse_route() 112 …r->nexthop = olsr_malloc((sizeof *r->nexthop) * r->nexthop_num, "QUAGGA: New zebra route nexthop"); in zparse_route() 113 for (c = 0; c < r->nexthop_num; c++) { in zparse_route()
|
H A D | quagga.c | 105 route.nexthop_num = 0; in zebra_addroute() 117 route.nexthop_num++; in zebra_addroute() 160 route.nexthop_num = 0; in zebra_delroute() 172 route.nexthop_num++; in zebra_delroute()
|
H A D | packet.c | 110 *t++ = r->nexthop_num + r->ifindex_num; in zpacket_route() 112 for (count = 0; count < r->nexthop_num; count++) { in zpacket_route()
|
/dports/net/frr7-pythontools/frr-frr-7.5.1/bgpd/ |
H A D | bgp_nht.c | 325 nhr->nexthop_num, bnc->nexthop_num, bnc->flags); in bgp_process_nexthop_update() 331 if (nhr->nexthop_num != bnc->nexthop_num) in bgp_process_nexthop_update() 334 if (nhr->nexthop_num) { in bgp_process_nexthop_update() 338 if (!bnc->nexthop_num) in bgp_process_nexthop_update() 343 bnc->nexthop_num = nhr->nexthop_num; in bgp_process_nexthop_update() 347 for (i = 0; i < nhr->nexthop_num; i++) { in bgp_process_nexthop_update() 414 bnc->nexthop_num = nhr->nexthop_num; in bgp_process_nexthop_update() 841 if (bnc->nexthop_num == 1 && bnc->nexthop in evaluate_paths()
|
/dports/net/frr7/frr-frr-7.5.1/bgpd/ |
H A D | bgp_nht.c | 325 nhr->nexthop_num, bnc->nexthop_num, bnc->flags); in bgp_process_nexthop_update() 331 if (nhr->nexthop_num != bnc->nexthop_num) in bgp_process_nexthop_update() 334 if (nhr->nexthop_num) { in bgp_process_nexthop_update() 338 if (!bnc->nexthop_num) in bgp_process_nexthop_update() 343 bnc->nexthop_num = nhr->nexthop_num; in bgp_process_nexthop_update() 347 for (i = 0; i < nhr->nexthop_num; i++) { in bgp_process_nexthop_update() 414 bnc->nexthop_num = nhr->nexthop_num; in bgp_process_nexthop_update() 841 if (bnc->nexthop_num == 1 && bnc->nexthop in evaluate_paths()
|
/dports/net/quagga/quagga-1.2.4/pimd/ |
H A D | pim_zlookup.c | 161 int nexthop_num; in zclient_read_nexthop() local 212 nexthop_num = stream_getc(s); in zclient_read_nexthop() 214 if (nexthop_num < 1) { in zclient_read_nexthop() 216 __func__, zlookup->sock, nexthop_num); in zclient_read_nexthop() 222 for (i = 0; i < nexthop_num; ++i) { in zclient_read_nexthop()
|
/dports/net/frr7-pythontools/frr-frr-7.5.1/pimd/ |
H A D | pim_nht.c | 350 if (!pnc || !pnc->nexthop_num) in pim_nexthop_match_nht_cache() 523 if (!pnc || !pnc->nexthop_num || !nexthop) in pim_ecmp_nexthop_search() 612 uint32_t consider = pnc->nexthop_num; in pim_ecmp_nexthop_search() 765 if (nhr.nexthop_num) { in pim_parse_nexthop_update() 766 pnc->nexthop_num = 0; // Only increment for pim enabled rpf. in pim_parse_nexthop_update() 768 for (i = 0; i < nhr.nexthop_num; i++) { in pim_parse_nexthop_update() 864 pnc->nexthop_num++; in pim_parse_nexthop_update() 869 if (pnc->nexthop_num) { in pim_parse_nexthop_update() 876 pnc->nexthop_num = nhr.nexthop_num; in pim_parse_nexthop_update() 887 __func__, buf, pim->vrf->name, nhr.nexthop_num, in pim_parse_nexthop_update() [all …]
|
H A D | pim_zlookup.c | 170 int nexthop_num; in zclient_read_nexthop() local 217 nexthop_num = stream_getc(s); in zclient_read_nexthop() 219 if (nexthop_num < 1) { in zclient_read_nexthop() 222 zlookup->sock, nexthop_num); in zclient_read_nexthop() 226 for (i = 0; i < nexthop_num; ++i) { in zclient_read_nexthop()
|
/dports/net/frr7/frr-frr-7.5.1/pimd/ |
H A D | pim_nht.c | 350 if (!pnc || !pnc->nexthop_num) in pim_nexthop_match_nht_cache() 523 if (!pnc || !pnc->nexthop_num || !nexthop) in pim_ecmp_nexthop_search() 612 uint32_t consider = pnc->nexthop_num; in pim_ecmp_nexthop_search() 765 if (nhr.nexthop_num) { in pim_parse_nexthop_update() 766 pnc->nexthop_num = 0; // Only increment for pim enabled rpf. in pim_parse_nexthop_update() 768 for (i = 0; i < nhr.nexthop_num; i++) { in pim_parse_nexthop_update() 864 pnc->nexthop_num++; in pim_parse_nexthop_update() 869 if (pnc->nexthop_num) { in pim_parse_nexthop_update() 876 pnc->nexthop_num = nhr.nexthop_num; in pim_parse_nexthop_update() 887 __func__, buf, pim->vrf->name, nhr.nexthop_num, in pim_parse_nexthop_update() [all …]
|
H A D | pim_zlookup.c | 170 int nexthop_num; in zclient_read_nexthop() local 217 nexthop_num = stream_getc(s); in zclient_read_nexthop() 219 if (nexthop_num < 1) { in zclient_read_nexthop() 222 zlookup->sock, nexthop_num); in zclient_read_nexthop() 226 for (i = 0; i < nexthop_num; ++i) { in zclient_read_nexthop()
|
/dports/net/quagga/quagga-1.2.4/isisd/ |
H A D | isis_zebra.c | 379 api.nexthop_num = listcount (route_info->nexthops6); in isis_zebra_route_add_ipv6() 408 api.nexthop_num--; in isis_zebra_route_add_ipv6() 421 if (api.nexthop_num && api.ifindex_num) in isis_zebra_route_add_ipv6() 459 api.nexthop_num = listcount (route_info->nexthops6); in isis_zebra_route_del_ipv6() 488 api.nexthop_num--; in isis_zebra_route_del_ipv6() 501 if (api.nexthop_num && api.ifindex_num) in isis_zebra_route_del_ipv6() 576 api.nexthop_num = stream_getc (stream); in isis_zebra_read_ipv4() 633 api.nexthop_num = stream_getc(stream); /* this is always 1 */ in isis_zebra_read_ipv6()
|
/dports/net/ryu/ryu-4.26/ryu/tests/unit/packet/ |
H A D | test_zebra.py | 134 nexthop_num = 0 variable in TestZebraIPv4ImportLookup 142 eq_(self.nexthop_num, len(body.nexthops)) 160 nexthop_num = 1 variable in TestZebraIPv4ImportLookupFromZebra 170 eq_(self.nexthop_num, len(body.nexthops)) 187 nexthop_num = 0 variable in TestZebraIPv4NexthopLookupMRib 195 eq_(self.nexthop_num, len(body.nexthops)) 214 nexthop_num = 1 variable in TestZebraIPv4NexthopLookupMRibFromZebra 224 eq_(self.nexthop_num, len(body.nexthops)) 247 nexthop_num = 1 variable in TestZebraNexthopUpdateIPv6 258 eq_(self.nexthop_num, len(body.nexthops))
|
/dports/net/frr7/frr-frr-7.5.1/zebra/ |
H A D | zebra_fpm_netlink.c | 365 unsigned int nexthop_num = 0; in netlink_route_info_encode() local 472 for (nexthop_num = 0; nexthop_num < ri->num_nhs; nexthop_num++) { in netlink_route_info_encode() 474 nhi = &ri->nhs[nexthop_num]; in netlink_route_info_encode()
|
/dports/net/frr7-pythontools/frr-frr-7.5.1/isisd/ |
H A D | isis_zebra.c | 241 api.nexthop_num = count; in isis_zebra_route_add_route() 297 znh = &zl.nexthops[zl.nexthop_num++]; in isis_zebra_prefix_install_prefix_sid() 315 if (zl.nexthop_num >= MULTIPATH_NUM) in isis_zebra_prefix_install_prefix_sid() 318 znh = &zl.nexthops[zl.nexthop_num++]; in isis_zebra_prefix_install_prefix_sid() 410 zl.nexthop_num = 1; in isis_zebra_send_adjacency_sid()
|
/dports/net/frr7-pythontools/frr-frr-7.5.1/zebra/ |
H A D | zebra_fpm_netlink.c | 365 unsigned int nexthop_num = 0; in netlink_route_info_encode() local 472 for (nexthop_num = 0; nexthop_num < ri->num_nhs; nexthop_num++) { in netlink_route_info_encode() 474 nhi = &ri->nhs[nexthop_num]; in netlink_route_info_encode()
|
/dports/net/frr7/frr-frr-7.5.1/isisd/ |
H A D | isis_zebra.c | 241 api.nexthop_num = count; in isis_zebra_route_add_route() 297 znh = &zl.nexthops[zl.nexthop_num++]; in isis_zebra_prefix_install_prefix_sid() 315 if (zl.nexthop_num >= MULTIPATH_NUM) in isis_zebra_prefix_install_prefix_sid() 318 znh = &zl.nexthops[zl.nexthop_num++]; in isis_zebra_prefix_install_prefix_sid() 410 zl.nexthop_num = 1; in isis_zebra_send_adjacency_sid()
|
/dports/net/frr7-pythontools/frr-frr-7.5.1/sharpd/ |
H A D | sharp_zebra.c | 168 zl.nexthop_num = i; in sharp_install_lsps_helper() 386 api.nexthop_num = i; in route_add() 448 if (api->nexthop_num == 0) { in sharp_debug_nexthops() 454 for (i = 0; i < api->nexthop_num; i++) { in sharp_debug_nexthops() 501 nht->nhop_num = nhr.nexthop_num; in sharp_nexthop_update()
|
/dports/net/frr7/frr-frr-7.5.1/sharpd/ |
H A D | sharp_zebra.c | 168 zl.nexthop_num = i; in sharp_install_lsps_helper() 386 api.nexthop_num = i; in route_add() 448 if (api->nexthop_num == 0) { in sharp_debug_nexthops() 454 for (i = 0; i < api->nexthop_num; i++) { in sharp_debug_nexthops() 501 nht->nhop_num = nhr.nexthop_num; in sharp_nexthop_update()
|
/dports/net/frr7-pythontools/frr-frr-7.5.1/lib/ |
H A D | zclient.c | 925 uint16_t nexthop_num) in zapi_nexthop_group_sort() argument 1064 if (api->nexthop_num > MULTIPATH_NUM) { in zapi_route_encode() 1081 stream_putw(s, api->nexthop_num); in zapi_route_encode() 1333 STREAM_GETW(s, api->nexthop_num); in zapi_route_decode() 1337 __func__, api->nexthop_num); in zapi_route_decode() 1688 STREAM_GETC(s, nhr->nexthop_num); in zapi_nexthop_update_decode() 2999 if (zl->nexthop_num > MULTIPATH_NUM) { in zapi_labels_encode() 3007 stream_putw(s, zl->nexthop_num); in zapi_labels_encode() 3092 STREAM_GETW(s, zl->nexthop_num); in zapi_labels_decode() 3094 if (zl->nexthop_num > MULTIPATH_NUM) { in zapi_labels_decode() [all …]
|
/dports/net/frr7/frr-frr-7.5.1/lib/ |
H A D | zclient.c | 925 uint16_t nexthop_num) in zapi_nexthop_group_sort() argument 1064 if (api->nexthop_num > MULTIPATH_NUM) { in zapi_route_encode() 1081 stream_putw(s, api->nexthop_num); in zapi_route_encode() 1333 STREAM_GETW(s, api->nexthop_num); in zapi_route_decode() 1337 __func__, api->nexthop_num); in zapi_route_decode() 1688 STREAM_GETC(s, nhr->nexthop_num); in zapi_nexthop_update_decode() 2999 if (zl->nexthop_num > MULTIPATH_NUM) { in zapi_labels_encode() 3007 stream_putw(s, zl->nexthop_num); in zapi_labels_encode() 3092 STREAM_GETW(s, zl->nexthop_num); in zapi_labels_decode() 3094 if (zl->nexthop_num > MULTIPATH_NUM) { in zapi_labels_decode() [all …]
|