Home
last modified time | relevance | path

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

/xnu-8020.140.41/bsd/kern/
H A Dnetboot.c520 struct sockaddr_in gw; in route_cmd() local
532 bzero((caddr_t)&gw, sizeof(gw)); in route_cmd()
533 gw.sin_len = sizeof(gw); in route_cmd()
534 gw.sin_family = AF_INET; in route_cmd()
535 gw.sin_addr = g; in route_cmd()
544 (struct sockaddr *)&gw, (struct sockaddr *)&mask, flags, NULL, ifscope); in route_cmd()
/xnu-8020.140.41/bsd/net/
H A Droute.c1650 const struct sockaddr *gw, unsigned int ifscope) in ifa_ifwithroute_common_locked() argument
1665 const struct sockaddr_in6 *gw_addr = (const struct sockaddr_in6*)(const void*)gw; in ifa_ifwithroute_common_locked()
1693 if (gw != NULL && in ifa_ifwithroute_common_locked()
1694 ((gw->sa_family == AF_INET) || in ifa_ifwithroute_common_locked()
1695 (gw->sa_family == AF_INET6))) { in ifa_ifwithroute_common_locked()
1696 gw = sa_copy(SA((uintptr_t)gw), &gw_ss, IN6_NULL_IF_EMBEDDED_SCOPE(&ifscope)); in ifa_ifwithroute_common_locked()
1711 ifa = ifa_ifwithaddr_scoped(gw, ifscope); in ifa_ifwithroute_common_locked()
1719 ifa = ifa_ifwithdstaddr(gw); in ifa_ifwithroute_common_locked()
1722 ifa = ifa_ifwithnet_scoped(gw, ifscope); in ifa_ifwithroute_common_locked()
1763 if ((ifa == NULL || (gw != NULL && in ifa_ifwithroute_common_locked()
[all …]
/xnu-8020.140.41/bsd/netinet/
H A Dtcp_log.h65 X(TLEF_DST_GW, 0x40, gw) \
/xnu-8020.140.41/tools/lldbmacros/
H A Dnet.py726 gw = Cast(rt.rt_gateway, 'sockaddr *')
727 if (gw.sa_family == AF_INET):
728 out_string += dst_string_format.format(GetSocketAddrAsStringInet(gw)) + " "
730 if (gw.sa_family == 30):
731 out_string += dst_string_format.format(GetSocketAddrAsStringInet6(gw)) + " "
734 if (gw.sa_family == 18):
735 out_string += dst_string_format.format(GetSocketAddrAsStringLink(gw)) + " "
741 dst_string_format.format(GetSocketAddrAsStringUnspec(gw))