/darwin-on-arm/xnu/bsd/net/ |
H A D | if_gif.c | 464 if (sc->gif_psrc->sa_family != AF_INET || 465 sc->gif_pdst->sa_family != AF_INET) 471 if (sc->gif_psrc->sa_family != AF_INET6 || 472 sc->gif_pdst->sa_family != AF_INET6) 511 switch (sc->gif_psrc->sa_family) { 658 /* sa_family must be equal */ 659 if (src->sa_family != dst->sa_family) 663 switch (src->sa_family) { 679 switch (dst->sa_family) { [all...] |
H A D | route.c | 344 if ((sa)->sa_family != AF_INET || \ 350 if ((sa)->sa_family != AF_INET6 || \ 384 ((sa)->sa_family == AF_INET && SIN(sa)->sin_addr.s_addr == 0) 387 ((sa)->sa_family == AF_INET6 && \ 514 int af = src->sa_family; 643 if (sa->sa_family == AF_INET && 646 } else if (sa->sa_family == AF_INET6 && 660 * rely on sa_family. Because of this, we use the sa_family 669 ((af = hint->sa_family) ! [all...] |
H A D | ether_at_pr_module.c | 156 switch (dst_netaddr->sa_family) { 172 dst_netaddr->sa_family);
|
H A D | rtsock.c | 390 if (info.rti_info[RTAX_DST] == NULL || (info.rti_info[RTAX_DST]->sa_family >= AF_MAX) || 391 (info.rti_info[RTAX_GATEWAY] != NULL && (info.rti_info[RTAX_GATEWAY]->sa_family >= AF_MAX))) { 395 if (info.rti_info[RTAX_DST]->sa_family == AF_INET && info.rti_info[RTAX_DST]->sa_len != sizeof (dst_in)) { 405 dst_sa_family = info.rti_info[RTAX_DST]->sa_family; 409 info.rti_info[RTAX_GATEWAY]->sa_family == AF_INET && info.rti_info[RTAX_GATEWAY]->sa_len != sizeof (gate_in)) { 434 if (info.rti_info[RTAX_DST]->sa_family != AF_INET && info.rti_info[RTAX_DST]->sa_family != AF_INET6) 452 if (info.rti_info[RTAX_DST]->sa_family == AF_INET) 454 if (info.rti_info[RTAX_GATEWAY] != NULL && info.rti_info[RTAX_GATEWAY]->sa_family == AF_INET) 478 if (check_routeselfref && (info.rti_info[RTAX_DST] && info.rti_info[RTAX_DST]->sa_family [all...] |
H A D | ether_inet_pr_module.c | 245 switch (dst_netaddr->sa_family) { 272 dst_netaddr->sa_family); 290 if (proto_addr->sa_family != AF_INET) 477 ifa->ifa_addr->sa_family == AF_INET) {
|
H A D | if.c | 760 if (ifa->ifa_addr->sa_family == family) { 794 if (ifa->ifa_addr->sa_family != addr->sa_family) { 841 if (ifa->ifa_addr->sa_family != 842 addr->sa_family) { 893 if (ifa->ifa_addr->sa_family != addr->sa_family) { 944 u_int af = addr->sa_family; 986 ifa->ifa_addr->sa_family != af) { 998 addr->sa_family ! [all...] |
H A D | bpf.c | 252 uint8_t sa_family; local 259 sa_family = AF_INET; 265 sa_family = AF_UNSPEC; 273 sa_family = AF_IMPLINK; 276 sa_family = AF_UNSPEC; 285 sa_family = AF_UNSPEC; 296 sa_family = AF_UNSPEC; 302 sa_family = AF_UNSPEC; 307 sa_family = AF_UNSPEC; 312 sa_family [all...] |
H A D | ether_if_module.c | 541 dlil_output(lo_ifp, ndest->sa_family, n, NULL, ndest, 0, NULL); 545 dlil_output(lo_ifp, ndest->sa_family, *m, NULL, ndest, 0, NULL); 587 switch(proto_addr->sa_family) {
|
H A D | if_utun_crypto_ipsec.c | 188 if ((((struct sockaddr *)src_addr)->sa_family != AF_INET && 189 ((struct sockaddr *)src_addr)->sa_family != AF_INET6) || 190 (((struct sockaddr *)dst_addr)->sa_family != AF_INET && 191 ((struct sockaddr *)dst_addr)->sa_family != AF_INET6)) { 496 if (((struct sockaddr *)&sah->saidx.src)->sa_family == AF_INET) {
|
H A D | if_stf.c | 472 if (ia->ifa_addr->sa_family != AF_INET6) { 864 if (ifa->ifa_addr->sa_family != AF_INET6) { 889 if (ifr && ifr->ifr_addr.sa_family == AF_INET6)
|
H A D | ether_inet6_pr_module.c | 183 if (proto_addr->sa_family != AF_INET6)
|
H A D | kpi_interface.c | 1322 ifa->ifa_addr->sa_family != family) { 1536 if (maddr->sa_family != AF_UNSPEC && maddr->sa_family != AF_LINK) 1552 if (maddr->sa_family != AF_UNSPEC && maddr->sa_family != AF_LINK) 1857 family = ifa->ifa_addr->sa_family; 2180 if (sa->sa_family != AF_LINK && sa->sa_family != AF_INET6) 2194 if (sa->sa_family != AF_LINK && sa->sa_family ! [all...] |
/darwin-on-arm/xnu/bsd/netinet/ |
H A D | ip_encap.c | 366 if (af != sp->sa_family || af != dp->sa_family) { 487 if (sp->sa_family != ep->af || dp->sa_family != ep->af) 514 s.ss_family = sp->sa_family; 516 d.ss_family = dp->sa_family;
|
H A D | tcp_usrreq.c | 273 if (nam->sa_family != 0 && nam->sa_family != AF_INET) { 306 if (nam->sa_family != 0 && nam->sa_family != AF_INET6) { 423 if (nam->sa_family != 0 && nam->sa_family != AF_INET) { 455 if (nam->sa_family != 0 && nam->sa_family != AF_INET6) { 692 isipv6 = nam && nam->sa_family == AF_INET6; 1196 if (itpl->itpl_local_sa.sa_family [all...] |
H A D | in_rmx.c | 174 rt2->rt_gateway->sa_family == AF_LINK) { 215 rt->rt_gateway->sa_family == AF_LINK) { 582 if (ifa->ifa_addr->sa_family != AF_INET)
|
/darwin-on-arm/xnu/bsd/netinet6/ |
H A D | in6_prefix.c | 194 if (ifpr->ifpr_prefix->sa_family != AF_INET6 || 231 if (ifa->ifa_addr->sa_family != AF_INET6) { 257 if (ifpr->ifpr_prefix->sa_family != AF_INET6 || 289 if (ifpr->ifpr_prefix->sa_family != AF_INET6 || 313 if (ifa->ifa_addr->sa_family != AF_INET6) { 355 if (ifpr->ifpr_prefix->sa_family != AF_INET6 || 377 if (ifpr->ifpr_prefix->sa_family != AF_INET6 || 664 if (ifpr->ifpr_prefix->sa_family != AF_INET6 || 815 if (ifpr->ifpr_prefix->sa_family != AF_INET6 || 1095 if (ifpr->ifpr_prefix->sa_family ! [all...] |
H A D | ipsec.c | 1743 if (((struct sockaddr *)&isr->sp->spidx.src)->sa_family 1744 != ((struct sockaddr *)&isr->sp->spidx.dst)->sa_family) 1760 switch (((struct sockaddr *)&isr->sp->spidx.src)->sa_family) { 1779 ((struct sockaddr *)&isr->sp->spidx.src)->sa_family); 2101 switch (((struct sockaddr *)&isr->saidx.dst)->sa_family) { 2113 ((struct sockaddr *)&isr->saidx.dst)->sa_family)); 2220 if (((struct sockaddr *)&sav->sah->saidx.src)->sa_family 2221 != ((struct sockaddr *)&sav->sah->saidx.dst)->sa_family 2222 || ((struct sockaddr *)&sav->sah->saidx.src)->sa_family != AF_INET) { 2341 if (((struct sockaddr *)&sav->sah->saidx.src)->sa_family [all...] |
H A D | in6.c | 2239 if (sa->sa_family != AF_INET6) 2245 if (sa->sa_family && sa->sa_family != AF_INET6) 2315 if (((struct sockaddr *)&iflr->dstaddr)->sa_family) { /*XXX*/ 2404 if (ifa->ifa_addr->sa_family != AF_INET6) { 2563 if (ifa->ifa_addr->sa_family != AF_INET6) { 2651 if (ifa->ifa_addr->sa_family != AF_INET6) { 2686 if (ifa->ifa_addr->sa_family != AF_INET6) { 2798 if (rt->rt_gateway->sa_family == AF_LINK) 2968 if (ifa->ifa_addr->sa_family ! [all...] |
H A D | in6_rmx.c | 228 rt2->rt_gateway->sa_family == AF_LINK) { 267 && rt2->rt_gateway->sa_family == AF_LINK
|
H A D | in6_pcb.c | 215 if (nam->sa_family != AF_INET6) { 794 if ((unsigned)cmd > PRC_NCMDS || dst->sa_family != AF_INET6) 1269 if (src->ro_rt != NULL && rt_key(src->ro_rt)->sa_family != AF_INET6) 1283 if (src->ro_rt != NULL && rt_key(src->ro_rt)->sa_family != AF_INET6)
|
/darwin-on-arm/xnu/tools/tests/xnu_quick_test/ |
H A D | socket_tests.c | 71 my_sockaddr->sa_family = AF_UNIX; 77 my_sockaddr->sa_family = AF_UNIX; 101 if ( my_sockaddr->sa_family != SOCK_STREAM ) { 168 /* test results - should be sa_family == SOCK_STREAM and name should match my_child_pathp */ 169 if ( my_sockaddr->sa_family != SOCK_STREAM ) {
|
/darwin-on-arm/xnu/bsd/nfs/ |
H A D | nfs_srvcache.c | 332 rp->rc_family = saddr->sa_family; 333 switch (saddr->sa_family) {
|
H A D | nfs_socket.c | 133 if (sa1->sa_family != sa2->sa_family) 134 return ((sa1->sa_family < sa2->sa_family) ? -1 : 1); 137 if (sa1->sa_family == AF_INET) 140 if (sa1->sa_family == AF_INET6) 380 else if ((nso->nso_saddr->sa_family == AF_INET) && 383 else if (nso->nso_saddr->sa_family == AF_INET6) { 473 if (sa->sa_family == AF_INET) 477 if (inet_ntop(sa->sa_family, sinadd [all...] |
/darwin-on-arm/xnu/bsd/sys/ |
H A D | socket.h | 465 sa_family_t sa_family; /* [XSI] address family */ member in struct:sockaddr 858 __uint16_t sa_family; /* address family */ member in struct:osockaddr
|
/darwin-on-arm/xnu/bsd/netat/ |
H A D | drv_dep.c | 160 dst.sa_family = AF_APPLETALK;
|