| /freebsd/sys/net/route/ |
| H A D | nhop_ctl.c | 137 nh->gw_sa.sa_family == AF_LINK) { in get_aifp() 718 memcpy(&nh->gw_sa, &nh_orig->gw_sa, nh_orig->gw_sa.sa_len); in nhop_copy() 739 memset(&nh->gw_buf[nh->gw_sa.sa_len], 0, sizeof(nh->gw_buf) - nh->gw_sa.sa_len); in nhop_set_direct_gw() 780 memcpy(&nh->gw_sa, gw, gw->sa_len); in nhop_set_gw() 846 bzero(&nh->gw_sa, sizeof(nh->gw_sa)); in nhop_set_blackhole() 1167 switch (nh->gw_sa.sa_family) { in nhop_print_buf() 1222 struct sockaddr *gw_sa, *src_sa; in dump_nhop_entry() local 1255 gw_sa = (struct sockaddr *)&nh->gw4_sa; in dump_nhop_entry() 1256 addrs_len += gw_sa->sa_len; in dump_nhop_entry() 1276 error = SYSCTL_OUT(w, gw_sa, gw_sa->sa_len); in dump_nhop_entry()
|
| H A D | nhop.c | 213 .family = nh->gw_sa.sa_family, in hash_priv() 215 .gw_addr = (nh->gw_sa.sa_family == AF_INET6) ? in hash_priv()
|
| H A D | route_ctl.c | 236 if (nh->gw_sa.sa_family != gw->sa_family) in match_nhop_gw() 265 return (memcmp(&nh->gw_sa, gw, nh->gw_sa.sa_len) == 0); in match_nhop_gw() 277 rib_match_gw(const struct rtentry *rt, const struct nhop_object *nh, void *gw_sa) in rib_match_gw() argument 279 const struct sockaddr *gw = (const struct sockaddr *)gw_sa; in rib_match_gw()
|
| H A D | route_ddb.c | 142 rt_dumpaddr_ddb("gateway", &rt->rt_nhop->gw_sa); in rt_dumpentry_ddb()
|
| H A D | nhop.h | 129 struct sockaddr gw_sa; member
|
| /freebsd/sys/netlink/route/ |
| H A D | rt.c | 758 if (nh->gw_sa.sa_family == 0) { in finalize_nhop() 781 struct ifaddr *ifa = ifa_ifwithroute(flags, dst, &nh->gw_sa, fibnum); in finalize_nhop() 792 const struct sockaddr *gw_sa = &nh->gw_sa; in finalize_nhop() local 794 if (gw_sa->sa_family != dst->sa_family) { in finalize_nhop() 801 gw_sa = dst; in finalize_nhop() 804 struct ifaddr *ifa = ifaof_ifpforaddr(gw_sa, nh->nh_ifp); in finalize_nhop() 807 gw_sa = &nh->gw_sa; in finalize_nhop() 808 ifa = ifaof_ifpforaddr(gw_sa, nh->nh_ifp); in finalize_nhop()
|
| H A D | nexthop.c | 453 switch (nh->gw_sa.sa_family) { in dump_nhop()
|
| /freebsd/sys/ofed/drivers/infiniband/core/ |
| H A D | ib_addr.c | 397 if (is_gw && nh->gw_sa.sa_family == AF_INET6) in addr4_resolve() 399 &nh->gw_sa, edst, NULL, NULL); in addr4_resolve() 403 &nh->gw_sa : (const struct sockaddr *)&dst_tmp, in addr4_resolve() 592 is_gw ? &nh->gw_sa : (const struct sockaddr *)&dst_tmp, in addr6_resolve()
|
| /freebsd/sys/netinet/ |
| H A D | ip_fastfwd.c | 144 if ((nh->nh_flags & NHF_GATEWAY) == 0 || nh->gw_sa.sa_family != AF_INET) in ip_redir_alloc() 467 gw = &nh->gw_sa; in ip_tryforward()
|
| H A D | ip_output.c | 502 gw = &nh->gw_sa; in ip_output() 536 gw = &nh->gw_sa; in ip_output()
|
| H A D | ip_icmp.c | 982 if (!sa_equal((struct sockaddr *)src, &nh->gw_sa)) in icmp_verify_redirect_gateway()
|
| H A D | ip_input.c | 1064 if (nh->gw_sa.sa_family == AF_INET) in ip_forward()
|
| H A D | in.c | 1618 memcmp(nh->gw_sa.sa_data, l3addr->sa_data, in in_lltable_rtcheck()
|
| H A D | sctp_output.c | 13886 SCTPDBG_ADDR(SCTP_DEBUG_OUTPUT2, &ro->ro_nh->gw_sa); in sctp_v6src_match_nexthop() 13887 if (sctp_cmpaddr((struct sockaddr *)&gw6, &ro->ro_nh->gw_sa)) { in sctp_v6src_match_nexthop() 13922 SCTPDBG_ADDR(SCTP_DEBUG_OUTPUT2, &ro->ro_nh->gw_sa); in sctp_v4src_match_nexthop()
|
| /freebsd/sys/net/ |
| H A D | debugnet.c | 721 if (nh->gw_sa.sa_family == AF_INET) in debugnet_connect() 724 if (nh->gw_sa.sa_family == AF_LINK) in debugnet_connect()
|
| H A D | route.c | 578 i += p_sockaddr(buf + i, buflen - i, &rt->rt_nhop->gw_sa);
|
| H A D | rtsock.c | 738 if (nh != NULL && nh->gw_sa.sa_family == AF_LINK && in fill_addrinfo() 995 info->rti_info[RTAX_GATEWAY] = &nh->gw_sa; in update_rtm_from_rc() 2062 info.rti_info[RTAX_GATEWAY] = &nh->gw_sa; in rtsock_routemsg() 2289 info.rti_info[RTAX_GATEWAY] = &nh->gw_sa; in sysctl_dumpnhop()
|
| /freebsd/sys/dev/cxgbe/tom/ |
| H A D | t4_connect.c | 306 nh->nh_flags & NHF_GATEWAY ? &nh->gw_sa : nam); in t4_connect()
|
| H A D | t4_listen.c | 1267 if (nh->gw_sa.sa_family == AF_INET) in get_l2te_for_nexthop()
|
| /freebsd/sys/netgraph/netflow/ |
| H A D | netflow.c | 363 if (nh->gw_sa.sa_family == AF_INET) in hash_insert() 441 if (nh->gw_sa.sa_family == AF_INET6) in hash6_insert()
|
| /freebsd/sys/dev/irdma/ |
| H A D | fbsd_kcompat.c | 381 *nexthop = (*gateway) ? &nh->gw_sa : dst_sin; in irdma_get_route_ifp()
|
| /freebsd/sys/netpfil/ipfilter/netinet/ |
| H A D | ip_fil_freebsd.c | 762 gw = &nh->gw_sa; in ipf_fastroute()
|
| /freebsd/sys/netinet6/ |
| H A D | nd6_rtr.c | 2631 if (nh->gw_sa.sa_family != AF_INET6) in rt6_deleteroute()
|
| /freebsd/sys/netpfil/pf/ |
| H A D | pf.c | 9873 gw = (const union sockaddr_union *)&nh->gw_sa; in pf_route()
|