Searched refs:rta_multipath (Results 1 – 7 of 7) sorted by relevance
| /freebsd/sbin/route/ |
| H A D | route_netlink.c | 428 printf("\n nhops: %u\n", r.rta_multipath.num_nhops); in print_nhop_getmsg() 429 if (r.rta_multipath.num_nhops != 0) { in print_nhop_getmsg() 431 for (uint32_t i = 0; i < r.rta_multipath.num_nhops; i++) { in print_nhop_getmsg() 432 struct rta_mpath_nh *nh = r.rta_multipath.nhops[i]; in print_nhop_getmsg() 601 if (r.rta_multipath.num_nhops != 0) { in print_nlmsg_route() 607 for (uint32_t i = 0; i < r.rta_multipath.num_nhops; i++) { in print_nlmsg_route() 608 struct rta_mpath_nh *nh = r.rta_multipath.nhops[i]; in print_nlmsg_route() 903 if (r->rta_multipath.num_nhops != 0) { in flushroute_one() 904 for (uint32_t i = 0; i < r->rta_multipath.num_nhops; i++) { in flushroute_one() 905 struct rta_mpath_nh *nh = r->rta_multipath.nhops[i]; in flushroute_one()
|
| /freebsd/tests/sys/netlink/ |
| H A D | test_rtnl_route.c | 132 ATF_CHECK_INTEQ(r.rta_multipath.num_nhops, 2); in ATF_TC_BODY() 182 ATF_CHECK_INTEQ(r.rta_multipath.num_nhops, 0); in ATF_TC_BODY() 205 ATF_CHECK_INTEQ(r.rta_multipath.num_nhops, 2); in ATF_TC_BODY() 296 ATF_CHECK_INTEQ(r.rta_multipath.num_nhops, 3); in ATF_TC_BODY() 309 ATF_CHECK_INTEQ(r.rta_multipath.num_nhops, 2); in ATF_TC_BODY()
|
| /freebsd/usr.bin/netstat/ |
| H A D | route_netlink.c | 238 if (rt.rta_multipath.num_nhops != 0) { in p_rtentry_netlink() 241 for (uint32_t i = 0; i < rt.rta_multipath.num_nhops; i++) { in p_rtentry_netlink() 242 struct rta_mpath_nh *nhop = rt.rta_multipath.nhops[i]; in p_rtentry_netlink()
|
| /freebsd/sys/netlink/route/ |
| H A D | rt.c | 522 struct rta_mpath *rta_multipath; member 551 { .type = NL_RTA_MULTIPATH, .off = _OUT(rta_multipath), .cb = nlattr_get_multipath }, 895 if (attrs->rta_multipath != NULL) { in create_nexthop_from_attrs() 897 int num_nhops = attrs->rta_multipath->num_nhops; in create_nexthop_from_attrs() 905 struct rta_mpath_nh *mpnh = &attrs->rta_multipath->nhops[i]; in create_nexthop_from_attrs()
|
| /freebsd/sys/netlink/ |
| H A D | netlink_snl_route_parsers.h | 117 struct rta_mpath rta_multipath; member 146 { .type = NL_RTA_MULTIPATH, .off = _OUT(rta_multipath), .cb = nlattr_get_multipath },
|
| /freebsd/usr.sbin/arp/ |
| H A D | arp_netlink.c | 135 if (r.rta_multipath.num_nhops > 0 || (r.rta_rtflags & RTF_GATEWAY)) in guess_ifindex()
|
| /freebsd/usr.sbin/ndp/ |
| H A D | ndp_netlink.c | 167 if (r.rta_multipath.num_nhops > 0 || (r.rta_rtflags & RTF_GATEWAY)) in guess_ifindex()
|