Home
last modified time | relevance | path

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

/xnu-10063.101.15/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-10063.101.15/bsd/net/
H A Droute.c1651 const struct sockaddr *gw, unsigned int ifscope) in ifa_ifwithroute_common_locked() argument
1666 const struct sockaddr_in6 *gw_addr = SIN6(gw); in ifa_ifwithroute_common_locked()
1694 if (gw != NULL && in ifa_ifwithroute_common_locked()
1695 ((gw->sa_family == AF_INET) || in ifa_ifwithroute_common_locked()
1696 (gw->sa_family == AF_INET6))) { in ifa_ifwithroute_common_locked()
1697 gw = sa_copy(__DECONST_SA(gw), &gw_ss, IN6_NULL_IF_EMBEDDED_SCOPE(&ifscope)); in ifa_ifwithroute_common_locked()
1712 ifa = ifa_ifwithaddr_scoped(gw, ifscope); in ifa_ifwithroute_common_locked()
1721 ifa = ifa_ifwithdstaddr_scoped(gw, ifscope); in ifa_ifwithroute_common_locked()
1724 ifa = ifa_ifwithdstaddr(gw); in ifa_ifwithroute_common_locked()
1728 ifa = ifa_ifwithnet_scoped(gw, ifscope); in ifa_ifwithroute_common_locked()
[all …]
/xnu-10063.101.15/bsd/netinet/
H A Dudp_log.h41 X(ULEF_DST_GW, 0x00000040, gw) \
H A Dtcp_log.h64 X(TLEF_DST_GW, 0x00000040, gw) \
/xnu-10063.101.15/tools/lldbmacros/
H A Dnet.py723 gw = Cast(rt.rt_gateway, 'sockaddr *')
724 if (gw.sa_family == AF_INET):
725 out_string += dst_string_format.format(GetSocketAddrAsStringInet(gw)) + " "
727 if (gw.sa_family == 30):
728 out_string += dst_string_format.format(GetSocketAddrAsStringInet6(gw)) + " "
731 if (gw.sa_family == 18):
732 out_string += dst_string_format.format(GetSocketAddrAsStringLink(gw)) + " "
738 dst_string_format.format(GetSocketAddrAsStringUnspec(gw))