/freebsd/libexec/talkd/ |
H A D | process.c | 71 mp->addr.sa_family = ntohs(mp->addr.sa_family); in process_request() 72 if (mp->addr.sa_family != AF_INET) { in process_request() 74 mp->addr.sa_family); in process_request() 78 mp->ctl_addr.sa_family = ntohs(mp->ctl_addr.sa_family); in process_request() 79 if (mp->ctl_addr.sa_family != AF_INET) { in process_request() 81 mp->ctl_addr.sa_family); in process_request() 114 rp->addr.sa_family = htons(ptr->addr.sa_family); in process_request()
|
/freebsd/contrib/sendmail/libmilter/ |
H A D | listener.c | 156 addr.sa.sa_family = AF_UNIX; 161 addr.sa.sa_family = AF_INET; 166 addr.sa.sa_family = AF_INET6; 182 addr.sa.sa_family = AF_UNIX; 189 addr.sa.sa_family = AF_INET; 196 addr.sa.sa_family = AF_INET6; 213 addr.sa.sa_family = AF_UNIX; 218 addr.sa.sa_family = AF_INET; 223 addr.sa.sa_family = AF_INET6; 235 if (addr.sa.sa_family == AF_UNIX) [all …]
|
/freebsd/usr.sbin/rpcbind/ |
H A D | util.c | 72 if (dst->sa_family != src->sa_family || in bitmaskcmp() 73 dst->sa_family != mask->sa_family) in bitmaskcmp() 76 switch (dst->sa_family) { in bitmaskcmp() 151 if (hint_sa == NULL || hint_sa->sa_family != caller_sa->sa_family) { in addrmerge() 196 if (ifsa == NULL || ifsa->sa_family != hint_sa->sa_family || in addrmerge() 203 if ((hint_sa->sa_family == AF_INET) && in addrmerge() 213 if ((hint_sa->sa_family == AF_INET6) && in addrmerge() 225 if (hint_sa->sa_family == AF_INET6) { in addrmerge() 383 if (ifap->ifa_addr->sa_family != AF_INET6 || in network_init()
|
/freebsd/contrib/ntp/libntp/lib/isc/ |
H A D | sockaddr.c | 63 if (a->type.sa.sa_family != b->type.sa.sa_family) in isc_sockaddr_compare() 65 switch (a->type.sa.sa_family) { in isc_sockaddr_compare() 128 switch (sockaddr->type.sa.sa_family) { in isc_sockaddr_totext() 199 sa->type.sa.sa_family); in isc_sockaddr_format() 215 switch (sockaddr->type.sa.sa_family) { in isc_sockaddr_hash() 239 (int)sockaddr->type.sa.sa_family); in isc_sockaddr_hash() 355 return (sockaddr->type.sa.sa_family); in isc_sockaddr_pf() 357 switch (sockaddr->type.sa.sa_family) { in isc_sockaddr_pf() 367 (int)sockaddr->type.sa.sa_family); in isc_sockaddr_pf() 406 switch (sockaddr->type.sa.sa_family) { in isc_sockaddr_setport() [all …]
|
/freebsd/usr.bin/talk/ |
H A D | look_up.c | 58 msg.ctl_addr.sa_family = htons(ctl_addr.sin_family); in check_local() 68 if (rp->addr.sa_family != AF_INET) in check_local() 70 (void)memcpy(&addr, &rp->addr.sa_family, sizeof(addr)); in check_local() 71 addr.sa_family = rp->addr.sa_family; in check_local()
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | socket.c | 68 errx (1, "unknown address family %d", sa->sa_family); in socket_set_any() 80 switch (sa->sa_family) { in socket_set_address_and_port() 102 errx (1, "unknown address family %d", sa->sa_family); in socket_set_address_and_port() 114 switch (sa->sa_family) { in socket_addr_size() 133 switch (sa->sa_family) { in socket_sockaddr_size() 152 switch (sa->sa_family) { in socket_get_address() 175 switch (sa->sa_family) { in socket_get_port() 198 switch (sa->sa_family) { in socket_set_port() 212 errx (1, "unknown address family %d", sa->sa_family); in socket_set_port()
|
/freebsd/sys/dev/cxgbe/tom/ |
H A D | t4_tom_l2t.c | 78 KASSERT(sa->sa_family == AF_INET || sa->sa_family == AF_INET6, in l2_hash() 80 sa->sa_family)); in l2_hash() 82 if (sa->sa_family == AF_INET) { in l2_hash() 106 KASSERT(sa->sa_family == AF_INET || sa->sa_family == AF_INET6, in l2_cmp() 108 sa->sa_family)); in l2_cmp() 110 if (sa->sa_family == AF_INET) { in l2_cmp() 125 KASSERT(sa->sa_family == AF_INET || sa->sa_family == AF_INET6, in l2_store() 127 sa->sa_family)); in l2_store() 129 if (sa->sa_family == AF_INET) { in l2_store() 367 KASSERT(sa->sa_family == AF_INET || sa->sa_family == AF_INET6, in t4_l2t_get() [all …]
|
/freebsd/contrib/pf/ftp-proxy/ |
H A D | filter.c | 90 (src->sa_family != nat->sa_family)) { in add_nat() 98 if (nat->sa_family == AF_INET) { in add_nat() 124 (src->sa_family != rdr->sa_family)) { in add_rdr() 132 if (rdr->sa_family == AF_INET) { in add_rdr() 239 if ((src->sa_family != AF_INET && src->sa_family != AF_INET6) || in prepare_rule() 240 (src->sa_family != dst->sa_family)) { in prepare_rule() 271 pfrule.af = src->sa_family; in prepare_rule() 275 if (src->sa_family == AF_INET) { in prepare_rule() 339 if (client->sa_family == AF_INET) in server_lookup() 343 if (client->sa_family == AF_INET6) in server_lookup()
|
/freebsd/contrib/pf/tftp-proxy/ |
H A D | filter.c | 94 (src->sa_family != nat->sa_family)) { in add_nat() 102 if (nat->sa_family == AF_INET) { in add_nat() 128 (src->sa_family != rdr->sa_family)) { in add_rdr() 136 if (rdr->sa_family == AF_INET) { in add_rdr() 248 if ((src->sa_family != AF_INET && src->sa_family != AF_INET6) || in prepare_rule() 249 (src->sa_family != dst->sa_family)) { in prepare_rule() 280 pfrule.af = src->sa_family; in prepare_rule() 284 if (src->sa_family == AF_INET) { in prepare_rule() 350 if (client->sa_family == AF_INET) in server_lookup() 354 if (client->sa_family == AF_INET6) in server_lookup()
|
/freebsd/usr.sbin/pnfsdsfile/ |
H A D | pnfsdsfile.c | 183 if (ad->ai_addr->sa_family == AF_INET && in main() 192 if (ad->ai_addr->sa_family == AF_INET6 && in main() 221 if (ad->ai_addr->sa_family == AF_INET && in main() 230 if (ad->ai_addr->sa_family == AF_INET6 && in main() 263 if (ad->ai_addr->sa_family == AF_INET && in main() 272 if (ad->ai_addr->sa_family == AF_INET6 && in main() 293 while (newres->ai_addr->sa_family != AF_INET && in main() 294 newres->ai_addr->sa_family != AF_INET6) { in main() 300 if (newres->ai_addr->sa_family == AF_INET) { in main() 304 } else if (newres->ai_addr->sa_family == in main()
|
/freebsd/sys/netinet/ |
H A D | tcp_offload.c | 71 KASSERT(nam->sa_family == AF_INET || nam->sa_family == AF_INET6, in tcp_offload_connect() 72 ("%s: called with sa_family %d", __func__, nam->sa_family)); in tcp_offload_connect() 80 if (nam->sa_family == AF_INET) in tcp_offload_connect() 88 if (nam->sa_family == AF_INET6) in tcp_offload_connect() 99 if (nam->sa_family == AF_INET && !(ifp->if_capenable & IFCAP_TOE4)) in tcp_offload_connect() 101 if (nam->sa_family == AF_INET6 && !(ifp->if_capenable & IFCAP_TOE6)) in tcp_offload_connect()
|
/freebsd/contrib/wireguard-tools/ |
H A D | showconf.c | 75 if (peer->endpoint.addr.sa_family == AF_INET || peer->endpoint.addr.sa_family == AF_INET6) { in showconf_main() 80 if (peer->endpoint.addr.sa_family == AF_INET) in showconf_main() 82 else if (peer->endpoint.addr.sa_family == AF_INET6) in showconf_main() 85 if (peer->endpoint.addr.sa_family == AF_INET6 && strchr(host, ':')) in showconf_main()
|
/freebsd/crypto/openssl/crypto/bio/ |
H A D | bio_addr.c | 61 ret->sa.sa_family = AF_UNSPEC; in BIO_ADDR_new() 73 ap->sa.sa_family = AF_UNSPEC; in BIO_ADDR_clear() 82 if (sa->sa_family == AF_INET) { in BIO_ADDR_make() 87 if (sa->sa_family == AF_INET6) { in BIO_ADDR_make() 93 if (sa->sa_family == AF_UNIX) { in BIO_ADDR_make() 142 return ap->sa.sa_family; in BIO_ADDR_family() 150 if (ap->sa.sa_family == AF_INET) { in BIO_ADDR_rawaddress() 155 else if (ap->sa.sa_family == AF_INET6) { in BIO_ADDR_rawaddress() 161 else if (ap->sa.sa_family == AF_UNIX) { in BIO_ADDR_rawaddress() 181 if (ap->sa.sa_family == AF_INET) in BIO_ADDR_rawport() [all …]
|
/freebsd/contrib/sendmail/src/ |
H A D | daemon.c | 430 RealHostAddr.sa.sa_family != Daemons[idx].d_addr.sa.sa_family)) 533 switch (Daemons[curdaemon].d_addr.sa.sa_family) 897 "%d", sa.sa.sa_family); 1100 if (d->d_addr.sa.sa_family == AF_UNIX) 1123 d->d_socket = socket(d->d_addr.sa.sa_family, 1203 switch (d->d_addr.sa.sa_family) 1280 if (daemonaddr->sa.sa_family == AF_UNSPEC) 1284 daemonaddr->sa.sa_family = AF_INET; 1288 switch (daemonaddr->sa.sa_family) 1334 switch (daemonaddr->sa.sa_family) [all …]
|
/freebsd/usr.sbin/mtest/ |
H A D | mtest.c | 123 assert(sua->sa.sa_family == sub->sa.sa_family); in su_cmp() 125 switch (sua->sa.sa_family) { in su_cmp() 179 if (psu && psu->sa.sa_family == AF_INET) { in __ifindex_to_primary_ip() 308 psu->sa.sa_family = AF_UNSPEC; in parse_cmd_args() 323 psu2->sa.sa_family = AF_UNSPEC; in parse_cmd_args() 392 su.sa.sa_family = AF_UNSPEC; in process_cmd() 393 su2.sa.sa_family = AF_UNSPEC; in process_cmd() 428 af = su.sa.sa_family; in process_cmd() 441 if (su2.sa.sa_family != AF_UNSPEC) { in process_cmd() 481 if (su2.sa.sa_family != AF_UNSPEC) { in process_cmd() [all …]
|
/freebsd/lib/libutil/ |
H A D | realhostname.c | 110 if (addr->sa_family == AF_INET6 && in realhostname_sa() 135 hints.ai_family = addr->sa_family; in realhostname_sa() 157 sa->sa_family == addr->sa_family) { in realhostname_sa() 164 if (sa->sa_family == AF_INET6 && in realhostname_sa() 179 addr->sa_family == AF_INET) { in realhostname_sa()
|
/freebsd/sys/netipsec/ |
H A D | ipsec_output.c | 257 dst->sa.sa_family != AF_INET || /* PF mismatch */ in ipsec4_perform_request() 258 (dst->sa.sa_family == AF_INET && /* Proxy */ in ipsec4_perform_request() 276 IPSEC_INIT_CTX(&ctx, &m, inp, sav, dst->sa.sa_family, IPSEC_ENC_AFTER); in ipsec4_perform_request() 288 switch(dst->sa.sa_family) { in ipsec4_perform_request() 302 __func__, dst->sa.sa_family)); in ipsec4_check_pmtu() 654 dst->sa.sa_family != AF_INET6 || /* PF mismatch */ in ipsec6_perform_request() 655 ((dst->sa.sa_family == AF_INET6) && in ipsec6_perform_request() 674 IPSEC_INIT_CTX(&ctx, &m, inp, sav, dst->sa.sa_family, IPSEC_ENC_AFTER); in ipsec6_process_packet() 678 switch(dst->sa.sa_family) { in ipsec6_process_packet() 695 __func__, dst->sa.sa_family)); in ipsec6_check_pmtu() [all...] |
H A D | xform_ipcomp.c | 119 if (src->sa.sa_family == AF_INET) in ipcomp_encapcheck() 304 IPSEC_ASSERT(saidx->dst.sa.sa_family == AF_INET || in ipcomp_input_cb() 305 saidx->dst.sa.sa_family == AF_INET6, in ipcomp_input_cb() 306 ("unexpected protocol family %u", saidx->dst.sa.sa_family)); in ipcomp_input_cb() 365 switch (saidx->dst.sa.sa_family) { in ipcomp_input_cb() 378 saidx->dst.sa.sa_family, saidx); in ipcomp_input_cb() 430 switch (sav->sah->saidx.dst.sa.sa_family) { in ipcomp_output() 445 sav->sah->saidx.dst.sa.sa_family, in ipcomp_output() 597 switch (sav->sah->saidx.dst.sa.sa_family) { in ipcomp_output_cb() 618 switch (sav->sah->saidx.dst.sa.sa_family) { in ipcomp_output_cb() [all …]
|
/freebsd/usr.sbin/ifmcstat/ |
H A D | ifmcstat.c | 397 if (sa.sa_family != PF_LINK) in ll_addrlist() 422 if (sa.sa_family != AF_LINK) in ll_addrlist() 456 if (sa.sa_family != PF_INET6) in if6_addrlist() 493 if (sa.sa_family != AF_INET6) in if6_addrlist() 542 if (sa.sa_family != PF_INET) in if_addrlist() 576 if (sa.sa_family != AF_INET) in if_addrlist() 1019 if (psa->sa.sa_family != AF_LINK) { in ifmcstat_getifmaddrs() 1033 if (af != 0 && pgsa->sa.sa_family != af) in ifmcstat_getifmaddrs() 1058 (ifa->ifa_addr->sa_family != pgsa->sa.sa_family)) in ifmcstat_getifmaddrs() 1066 if (pifasa->sa.sa_family == AF_INET6 in ifmcstat_getifmaddrs() [all …]
|
/freebsd/contrib/tcp_wrappers/ |
H A D | rfc931.c | 98 if (rmt_sin->sa_family != our_sin->sa_family) { 102 switch (our_sin->sa_family) { 124 if ((fp = fsocket(our_sin->sa_family, SOCK_STREAM, 0)) != 0) { 148 switch (our_sin->sa_family) {
|
H A D | socket.c | 151 salen = (sin->sa_family == AF_INET) ? sizeof(struct sockaddr_in) in sock_hostaddr() 176 if (sin->sa_family == AF_INET6) { in sock_hostname() 190 switch (sin->sa_family) { in sock_hostname() 214 hints.ai_family = sin->sa_family; in sock_hostname() 243 hints.ai_family = sin->sa_family; in sock_hostname() 255 (sin->sa_family == AF_INET) ? "AF_INET" : "AF_INET6"); in sock_hostname() 281 if (res->ai_family != sin->sa_family) in sock_hostname()
|
/freebsd/sys/net/ |
H A D | route.c | 200 if (rt_tables_get_rnh(fibnum, dst->sa_family) == NULL) in rib_add_redirect() 212 struct nhop_object *nh = nhop_alloc(fibnum, dst->sa_family); in rib_add_redirect() 311 if (ifa->ifa_addr->sa_family != dst->sa_family) { in ifa_ifwithroute() 461 (gateway->sa_family != dst->sa_family)) in rt_getifa_fib() 487 gateway->sa_family == dst->sa_family) in rt_getifa_fib() 543 switch (s->sa_family) { 555 if (inet_ntop(s->sa_family, paddr, buf, buflen) == NULL) 625 if (sa->sa_family == AF_INET) { in rt_addrmsg() 636 if (sa->sa_family == AF_INET6) { in rt_addrmsg()
|
H A D | if_ipsec.c | 137 switch (sa->sa_family) { in ipsec_srchash() 473 sav->sah->saidx.src.sa.sa_family); in ipsec_if_input() 584 /* sa_family must be equal */ in ipsec_ioctl() 585 if (src->sa_family != dst->sa_family || in ipsec_ioctl() 590 switch (src->sa_family) { in ipsec_ioctl() 607 /* check sa_family looks sane for the cmd */ in ipsec_ioctl() 612 if (src->sa_family == AF_INET) in ipsec_ioctl() 618 if (src->sa_family == AF_INET6) in ipsec_ioctl() 624 switch (src->sa_family) { in ipsec_ioctl() [all...] |
/freebsd/cddl/usr.sbin/dwatch/libexec/ |
H A D | sendrecv | 43 sa_family_t sa_family; 123 sa_family = SA == NULL ? 0 : SA->sa_family; 124 family = address_family_string[SA == NULL ? 0 : SA->sa_family]; 127 sa_data_addr[SA->sa_family, SA->sa_data]; 130 sa_data_port[SA->sa_family, SA->sa_data]; 170 af_details[this->sainfo.sa_family, 202 af_details[this->sainfo.sa_family,
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_addr.c | 81 switch (addr->sa_family) { in rdma_addr_size() 181 } else switch (addr->sa_family) { in rdma_translate_ip() 397 if (is_gw && nh->gw_sa.sa_family == AF_INET6) in addr4_resolve() 673 if (dst_in->sa_family != src_in->sa_family) in addr_resolve() 677 switch (src_in->sa_family) { in addr_resolve() 764 if (src_addr->sa_family != dst_addr->sa_family) { in rdma_resolve_ip() 771 src_in->sa_family = dst_addr->sa_family; in rdma_resolve_ip() 811 if (src_addr->sa_family != dst_addr->sa_family) in rdma_resolve_ip_route() 816 src_in->sa_family = dst_addr->sa_family; in rdma_resolve_ip_route()
|