Home
last modified time | relevance | path

Searched refs:gw (Results 1 – 5 of 5) sorted by relevance

/xnu-12377.41.6/bsd/kern/
H A Dnetboot.c487 struct sockaddr_in gw; in route_cmd() local
499 bzero((caddr_t)&gw, sizeof(gw)); in route_cmd()
500 gw.sin_len = sizeof(gw); in route_cmd()
501 gw.sin_family = AF_INET; in route_cmd()
502 gw.sin_addr = g; in route_cmd()
511 (struct sockaddr *)&gw, (struct sockaddr *)&mask, flags, NULL, ifscope); in route_cmd()
/xnu-12377.41.6/bsd/net/
H A Droute.c1710 const struct sockaddr *gw, unsigned int ifscope) in ifa_ifwithroute_common_locked() argument
1725 const struct sockaddr_in6 *gw_addr = SIN6(gw); in ifa_ifwithroute_common_locked()
1753 if (gw != NULL && in ifa_ifwithroute_common_locked()
1754 ((gw->sa_family == AF_INET) || in ifa_ifwithroute_common_locked()
1755 (gw->sa_family == AF_INET6))) { in ifa_ifwithroute_common_locked()
1756 gw = sa_copy(__DECONST_SA(gw), &gw_ss, IN6_NULL_IF_EMBEDDED_SCOPE(&ifscope)); in ifa_ifwithroute_common_locked()
1771 ifa = ifa_ifwithaddr_scoped(gw, ifscope); in ifa_ifwithroute_common_locked()
1780 ifa = ifa_ifwithdstaddr_scoped(gw, ifscope); in ifa_ifwithroute_common_locked()
1783 ifa = ifa_ifwithdstaddr(gw); in ifa_ifwithroute_common_locked()
1787 ifa = ifa_ifwithnet_scoped(gw, ifscope); in ifa_ifwithroute_common_locked()
[all …]
/xnu-12377.41.6/bsd/netinet/
H A Dudp_log.h40 X(ULEF_DST_GW, 0x00000040, gw) \
H A Dtcp_log.h42 X(TLEF_DST_GW, 0x00000040, gw) \
/xnu-12377.41.6/tools/lldbmacros/
H A Dnet.py714 gw = Cast(rt.rt_gateway, 'sockaddr *')
715 if (gw.sa_family == AF_INET):
716 out_string += dst_string_format.format(GetSocketAddrAsStringInet(gw)) + " "
718 if (gw.sa_family == 30):
719 out_string += dst_string_format.format(GetSocketAddrAsStringInet6(gw)) + " "
722 if (gw.sa_family == 18):
723 out_string += dst_string_format.format(GetSocketAddrAsStringLink(gw)) + " "
729 dst_string_format.format(GetSocketAddrAsStringUnspec(gw))