Home
last modified time | relevance | path

Searched refs:ss_family (Results 1 – 25 of 103) sorted by relevance

12345

/illumos-gate/usr/src/cmd/cmd-inet/common/
H A Dkcmd.h66 #define SOCK_FAMILY(ss) ((ss).ss_family)
68 #define SOCK_PORT(ss) ((ss).ss_family == AF_INET6 ? \
72 #define SOCK_ADDR(ss) ((ss).ss_family == AF_INET6 ? \
79 ((ss).ss_family == AF_INET6 ? \
86 ((void) ((ss).ss_family == AF_INET6 ? \
H A Daddr_match.c51 if ((fromp->ss_family == AF_INET && sin == NULL) || in find_match()
52 (fromp->ss_family == AF_INET6 && sin6 == NULL)) in find_match()
61 if (ai->ai_family != fromp->ss_family) in find_match()
104 hints.ai_family = fromp->ss_family; in check_address()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rexecd.c204 if (fromp->ss_family == AF_INET) { in doit()
207 asin.ss_family = AF_INET; /* used for bind */ in doit()
208 } else if (fromp->ss_family == AF_INET6) { in doit()
211 asin.ss_family = AF_INET6; /* used for bind */ in doit()
214 fromp->ss_family); in doit()
223 if (fromp->ss_family == AF_INET6) { in doit()
235 } else if (fromp->ss_family == AF_INET) { in doit()
256 s = socket(fromp->ss_family, SOCK_STREAM, 0); in doit()
262 if (fromp->ss_family == AF_INET) { in doit()
264 } else if (fromp->ss_family == AF_INET6) { in doit()
H A Din.rshd.c488 if (fromp->ss_family == AF_INET) { in doit()
492 } else if (fromp->ss_family == AF_INET6) { in doit()
501 if (fromp->ss_family == AF_INET6) { in doit()
512 } else if (fromp->ss_family == AF_INET) { in doit()
619 if (fromp->ss_family == AF_INET) { in doit()
621 } else if (fromp->ss_family == AF_INET6) { in doit()
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_misc.c118 (((acp)->ac_local.ss_family == AF_INET) ? \
169 if (acp->ac_local.ss_family == AF_INET) { in tcp_ioctl_abort_build_msg()
170 tacp->ac_local.ss_family = AF_INET; in tcp_ioctl_abort_build_msg()
171 tacp->ac_remote.ss_family = AF_INET; in tcp_ioctl_abort_build_msg()
177 tacp->ac_local.ss_family = AF_INET6; in tcp_ioctl_abort_build_msg()
178 tacp->ac_remote.ss_family = AF_INET6; in tcp_ioctl_abort_build_msg()
200 af = acp->ac_local.ss_family; in tcp_ioctl_abort_dump()
364 af = acp->ac_local.ss_family; in tcp_ioctl_abort()
456 laf = acp->ac_local.ss_family; in tcp_ioctl_abort_conn()
457 raf = acp->ac_remote.ss_family; in tcp_ioctl_abort_conn()
H A Dtcp_sig.c538 if (src_s->ss_family != AF_INET) in tcpsig_sa_match4()
588 if (src_s->ss_family != AF_INET6 || sa->ts_src.ss_family != AF_INET6) in tcpsig_sa_match6()
620 if (src->ss_family != dst->ss_family) in tcpsig_sa_find_held()
739 if (src->ss_family != dst->ss_family) { in tcpsig_sa_add()
744 if (src->ss_family != AF_INET && src->ss_family != AF_INET6) { in tcpsig_sa_add()
768 sa->ts_family = src->ss_family; in tcpsig_sa_add()
/illumos-gate/usr/src/lib/libinetsvc/common/
H A Dinetsvc.h158 #define SS_ADDRLEN(s) ((s).ss_family == AF_INET ? \
160 #define SS_PORT(s) ((s).ss_family == AF_INET ? \
163 #define SS_SETPORT(s, port) ((s).ss_family == AF_INET ? \
166 #define SS_SINADDR(s) ((s).ss_family == AF_INET ? \
/illumos-gate/usr/src/lib/libinetutil/common/
H A Dinetutil.c82 if (ssp1->ss_family != ssp2->ss_family) in sockaddrcmp()
88 switch (ssp1->ss_family) { in sockaddrcmp()
/illumos-gate/usr/src/lib/libdtrace/common/
H A Dnfssrv.d34 ci_protocol = (P->rc_addr.ss_family == AF_INET) ? "ipv4" : "ipv6";
38 ci_remote = (P->rc_addr.ss_family == AF_INET) ?
/illumos-gate/usr/src/lib/libsocket/inet/
H A Drcmd.c332 switch (faddr.ss_family) { in rcmd_af()
427 if (addr->ss_family == AF_INET) { in _rresvport_addr()
430 } else if (addr->ss_family == AF_INET6) { in _rresvport_addr()
437 s = socket(addr->ss_family, SOCK_STREAM, 0); in _rresvport_addr()
452 if (addr->ss_family == AF_INET) { in _rresvport_addr()
479 if (addr->ss_family == AF_INET) { in _rresvport_addr()
492 switch (addr->ss_family) { in _rresvport_addr()
539 laddr.ss_family = (sa_family_t)af; in rresvport_af()
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Dkrb5_lookup.c118 if (family == ds->addr.ss_family) in _krb5_override_service_locator()
129 switch (ds->addr.ss_family) { in _krb5_override_service_locator()
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dis_local_host.c116 #define lifraddrp(lifrp) ((lifrp->lifr_addr.ss_family == AF_INET6) ? \ in is_local_if()
123 if (lifrp->lifr_addr.ss_family != hp->h_addrtype) { in is_local_if()
/illumos-gate/usr/src/cmd/idmap/test-getdc/
H A Dgetdc_main.c112 if (ds->addr.ss_family == AF_INET) { in print_ds()
121 if (ds->addr.ss_family == AF_INET6) { in print_ds()
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Dserver.c85 if (ssp->ss_family == AF_INET) { in isns_connection()
171 if (ssp->ss_family == AF_INET) { in isns_connection()
301 if (ssp->ss_family == AF_INET) { in isns_port_watcher()
/illumos-gate/usr/src/uts/common/io/comstar/port/iscsit/
H A Discsit_authclient.c189 if (sa->ss_family == AF_INET) { in iscsit_verify_chap_resp()
194 } else if (sa->ss_family == AF_INET6) { in iscsit_verify_chap_resp()
/illumos-gate/usr/src/boot/sys/sys/
H A D_sockaddr_storage.h48 sa_family_t ss_family; /* address family */ member
/illumos-gate/usr/src/common/iscsit/
H A Discsit_common.c159 sa->ss_family = af; in it_common_convert_sa()
990 if (sa1->ss_family != sa2->ss_family) { in it_sa_compare()
999 if (sa1->ss_family == AF_INET) { in it_sa_compare()
1007 } else if (sa1->ss_family == AF_INET6) { in it_sa_compare()
1314 if (sa->ss_family == AF_INET) { in sockaddr_to_str()
1324 } else if (sa->ss_family == AF_INET6) { in sockaddr_to_str()
/illumos-gate/usr/src/cmd/connstat/
H A Dconnstat_main.c389 if (addrp->ss_family == AF_INET) { in process_filter()
428 if (filter->ca_laddr.ss_family != filter->ca_raddr.ss_family) { in process_filter()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dforeachaddr.c292 if (lifr2->lifr_addr.ss_family == lifr->lifr_addr.ss_family in foreach_localaddr()
/illumos-gate/usr/src/uts/common/sys/
H A Dsocket_impl.h97 sa_family_t ss_family; /* Address family */ member
/illumos-gate/usr/src/uts/common/io/idm/
H A Didm_so.c274 if (v4_mapped_as_v4 && (ss1->ss_family == AF_INET6)) { in idm_ss_compare()
278 mapped_v4_ss1.ss_family = AF_INET; in idm_ss_compare()
287 if (v4_mapped_as_v4 && (ss2->ss_family == AF_INET6)) { in idm_ss_compare()
291 mapped_v4_ss2.ss_family = AF_INET; in idm_ss_compare()
316 if (ss1->ss_family != ss2->ss_family) { in idm_ss_compare()
317 if (ss1->ss_family == AF_INET) in idm_ss_compare()
326 if (ss1->ss_family == AF_INET) { in idm_ss_compare()
336 } else if (ss1->ss_family == AF_INET6) { in idm_ss_compare()
482 switch (ss.ss_family) { in idm_get_ipaddr()
508 switch (ss.ss_family) { in idm_get_ipaddr()
[all …]
/illumos-gate/usr/src/cmd/krb5/slave/
H A Dkpropd.c579 if (from.ss_family == AF_INET) {
585 } else if (from.ss_family == AF_INET6 &&
597 if (from.ss_family == AF_INET || from.ss_family == AF_INET6) {
599 if (from.ss_family == AF_INET6 &&
621 from.ss_family);
625 from.ss_family);
H A Dutils.c18 switch (ss->ss_family) { in cvtkaddr()
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSPosix/
H A DmDNSUNP.c309 if (lifr->lifr_addr.ss_family == AF_INET) { in select_src_ifi_info_solaris()
427 if (lifrp->lifr_addr.ss_family != family) in get_ifi_info_solaris()
467 assert((best_lifr->lifr_addr.ss_family == AF_INET6) || in get_ifi_info_solaris()
468 (best_lifr->lifr_addr.ss_family == AF_INET)); in get_ifi_info_solaris()
470 switch (best_lifr->lifr_addr.ss_family) { in get_ifi_info_solaris()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/
H A Dsocks.c184 addr.ss_family = 0; /* used in switch below */ in socks_connect()
201 switch (addr.ss_family) { in socks_connect()

12345