/illumos-gate/usr/src/lib/libsocket/socket/ |
H A D | socket.c | 56 _socket(int family, int type, int protocol) in _socket() argument 58 return (_socket_create(family, type, protocol, SOV_DEFAULT)); in _socket() 65 _socket_bsd(int family, int type, int protocol) in _socket_bsd() argument 67 return (_socket_create(family, type, protocol, SOV_SOCKBSD)); in _socket_bsd() 71 _socket_svr4(int family, int type, int protocol) in _socket_svr4() argument 73 return (_socket_create(family, type, protocol, SOV_SOCKSTREAM)); in _socket_svr4() 77 __xnet_socket(int family, int type, int protocol) in __xnet_socket() argument 79 return (_socket_create(family, type, protocol, SOV_XPG4_2)); in __xnet_socket() 93 _socket_create(int family, int type, int protocol, int version) in _socket_create() argument 107 fd = _so_socket(family, type, protocol, NULL, version); in _socket_create() [all …]
|
H A D | socketpair.c | 57 _socketpair(int family, int type, int protocol, int sv[2]) in _socketpair() argument 59 return (_socketpair_create(family, type, protocol, sv, SOV_DEFAULT)); in _socketpair() 66 _socketpair_bsd(int family, int type, int protocol, int sv[2]) in _socketpair_bsd() argument 68 return (_socketpair_create(family, type, protocol, sv, SOV_SOCKBSD)); in _socketpair_bsd() 72 _socketpair_svr4(int family, int type, int protocol, int sv[2]) in _socketpair_svr4() argument 74 return (_socketpair_create(family, type, protocol, sv, SOV_SOCKSTREAM)); in _socketpair_svr4() 78 __xnet_socketpair(int family, int type, int protocol, int sv[2]) in __xnet_socketpair() argument 80 return (_socketpair_create(family, type, protocol, sv, SOV_XPG4_2)); in __xnet_socketpair() 84 _socketpair_create(int family, int type, int protocol, int sv[2], int version) in _socketpair_create() argument 93 fd1 = _socket_create(family, type, protocol, version); in _socketpair_create() [all …]
|
H A D | _soutil.c | 50 static struct netconfig *_s_match_netconf(int family, int type, int proto, 122 _s_netconfig_path(int family, int type, int protocol, in _s_netconfig_path() argument 129 net = _s_match_netconf(family, type, protocol, &nethandle); in _s_netconfig_path() 176 _s_match_netconf(int family, int type, int proto, void **nethandle) in _s_match_netconf() argument 182 if (family < 0 || in _s_match_netconf() 183 family >= (int)sizeof (family_sw) / (int)sizeof (char *) || in _s_match_netconf() 216 if (strcmp(net->nc_protofmly, family_sw[family]) == 0 && in _s_match_netconf() 221 if (strcmp(net->nc_protofmly, family_sw[family]) == 0 && in _s_match_netconf() 230 if (strcmp(net->nc_protofmly, family_sw[family]) == 0 && in _s_match_netconf()
|
/illumos-gate/usr/src/cmd/sendmail/libmilter/ |
H A D | sm_gethost.c | 46 getipnodebyname(name, family, flags, err) in getipnodebyname() argument 48 int family; 55 if (family == AF_INET6) 63 if (family == AF_INET6 && !resv6) 83 mi_gethostbyname(name, family) in mi_gethostbyname() argument 85 int family; 110 h = getipnodebyname(name, family, flags, &err); 138 mi_inet_pton(family, src, dst) in mi_inet_pton() argument 139 int family; in mi_inet_pton() 143 if (family == AF_INET6 && [all …]
|
/illumos-gate/usr/src/test/net-tests/tests/ipv6/ |
H A D | dup_bind.py | 48 with socket.socket(family=socket.AF_INET6, 69 def __init__(self, name: str, family: int, addr: SockAddr) -> None: 71 self.family = family 84 if self.family==socket.AF_INET6: 91 self.sockobj = socket.socket(family=self.family, type=self.type, proto=self.proto) 139 self.sockobj = socket.socket(family=self.family, type=self.type, proto=self.proto) 167 self.sockobj = socket.socket(family=self.family, type=self.type, proto=self.proto) 191 def get_addr(addr: str, port: int, family: int, 201 sa = socket.getaddrinfo(addr, port, family=family, proto=proto.proto, 221 family=family_map[args.family] [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/ |
H A D | traceroute.c | 82 int family; /* address family of the IP addresses */ member 89 int family; /* AF_INET or AF_INET6 */ member 671 resolve_nodes(int *family, struct addrinfo **ai_dstp) in resolve_nodes() argument 678 get_hostinfo(hostname, *family, &ai_dst); in resolve_nodes() 695 if (*family == AF_UNSPEC && !probe_all) { in resolve_nodes() 696 *family = ai_dst->ai_family; in resolve_nodes() 701 get_gwaddrs(gwlist, *family, gwIPlist, gwIP6list, in resolve_nodes() 706 if (*family == AF_INET6 || *family == AF_UNSPEC) in resolve_nodes() 714 if (*family == AF_INET || *family == AF_UNSPEC) in resolve_nodes() 729 get_hostinfo(char *host, int family, struct addrinfo **aipp) in get_hostinfo() argument [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/ |
H A D | ibcm_arp_link.c | 82 wqnp->ifproto = (dst_addr->family == AF_INET) ? in ibcm_arp_create_prwqn() 129 if (dst_addr->family == AF_INET) { in ibcm_resolver_pr_lookup() 165 wqnp->src_addr.family = wqnp->gateway.family = in ibcm_resolver_pr_lookup() 166 wqnp->netmask.family = AF_INET; in ibcm_resolver_pr_lookup() 168 } else if (dst_addr->family == AF_INET6) { in ibcm_resolver_pr_lookup() 205 wqnp->src_addr.family = wqnp->gateway.family = in ibcm_resolver_pr_lookup() 206 wqnp->netmask.family = AF_INET6; in ibcm_resolver_pr_lookup() 216 if (wqnp->src_addr.family == AF_INET) { in ibcm_resolver_pr_lookup() 299 if (wqnp->src_addr.family != wqnp->dst_addr.family) { in ibcm_nce_lookup() 301 "Family: %d, DST_ADDR Family %d", wqnp->src_addr.family, in ibcm_nce_lookup() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_ipaddr.c | 209 addhost(int family, const void *ipaddr, const char *name, char **aliases) in addhost() argument 219 switch (family) { in addhost() 252 family); in addhost() 260 if (family == AF_INET) { in addhost() 274 } else if (family == AF_INET6) { in addhost() 291 family); in addhost() 308 addrtoname(int family, const void *ipaddr) in addrtoname() argument 310 switch (family) { in addrtoname() 317 family); in addrtoname() 330 int family; in load_names() local [all …]
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | cpuid_subr.c | 870 synth_amd_skt_cpuid(uint_t family, uint_t sktid) in synth_amd_skt_cpuid() argument 881 if (family == 0x10) { in synth_amd_skt_cpuid() 898 synth_amd_info(uint_t family, uint_t model, uint_t step, in synth_amd_info() argument 906 if (family < 0xf) in synth_amd_info() 910 if (family == rmp->rm_family && in synth_amd_info() 947 if (family == 0xf) { in synth_amd_info() 950 *skt_p = synth_amd_skt_cpuid(family, rmp->rm_sktidx); in synth_amd_info() 956 _cpuid_skt(uint_t vendor, uint_t family, uint_t model, uint_t step) in _cpuid_skt() argument 963 synth_amd_info(family, model, step, &skt, NULL, NULL, NULL); in _cpuid_skt() 975 _cpuid_sktstr(uint_t vendor, uint_t family, uint_t model, uint_t step) in _cpuid_sktstr() argument [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | locate_kdc.c | 271 int socktype, int family) in krb5int_add_host_to_list() argument 280 family, socktype); in krb5int_add_host_to_list() 283 hint.ai_family = family; in krb5int_add_host_to_list() 383 enum locate_service_type svc, int socktype, int family) in module_locate_server() argument 422 code = vtbl->lookup(blob, svc, realm->data, socktype, family, in module_locate_server() 458 int socktype, int family, 477 enum locate_service_type svc, int socktype, int family) in override_locate_server() argument 499 code = lookup_func(ctx, svc, realm->data, socktype, family, in override_locate_server() 583 enum locate_service_type svc, int socktype, int family) in dns_locate_server() argument 655 int family, in dns_hostnames2netaddrs() argument [all …]
|
/illumos-gate/usr/src/lib/libinetutil/common/ |
H A D | ifaddrlist.c | 54 ifaddrlist(struct ifaddrlist **ipaddrp, int family, uint_t flags, char *errbuf) in ifaddrlist() argument 67 if (family != AF_INET && family != AF_INET6) { in ifaddrlist() 72 if ((fd = socket(family, SOCK_DGRAM, 0)) == -1) { in ifaddrlist() 80 lifn.lifn_family = family; in ifaddrlist() 95 lifc.lifc_family = family; in ifaddrlist() 157 if (family == AF_INET) { in ifaddrlist()
|
/illumos-gate/usr/src/uts/common/inet/sockmods/ |
H A D | sockmod_sdp.c | 74 socksdp_create(struct sockparams *sp, int family, int type, int protocol, in socksdp_create() argument 81 family, protocol, type)); in socksdp_create() 98 if (!(family == AF_INET || family == AF_INET6) || in socksdp_create() 110 sonode_init(so, sp, family, type, protocol, &sosdp_sonodeops); in socksdp_create() 113 dprint(2, ("sosdp_create: %p domain %d type %d\n", (void *)so, family, in socksdp_create()
|
H A D | sockmod_sctp.c | 119 socksctp_create(struct sockparams *sp, int family, int type, int protocol, in socksctp_create() argument 135 if (!(family == AF_INET || family == AF_INET6) || in socksctp_create() 154 sonode_init(so, sp, family, type, protocol, in socksctp_create() 157 sonode_init(so, sp, family, type, protocol, in socksctp_create() 170 dprint(2, ("sosctp_create: %p domain %d type %d\n", (void *)so, family, in socksctp_create()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/ |
H A D | ping.c | 802 targetaddr->family = dst_addr->sa_family; in create_targetaddr_item() 938 get_gwaddrs(char **gw_list, int family, union any_in_addr *gwIPlist, in get_gwaddrs() argument 947 switch (family) { in get_gwaddrs() 972 get_hostinfo(gw_list[i], family, &ai); in get_gwaddrs() 1015 mirror_gws(union any_in_addr *gwIPlist, int family) in mirror_gws() argument 1023 if ((family == AF_INET && effective_num_gw >= MAX_GWS) || in mirror_gws() 1024 (family == AF_INET6 && effective_num_gw > MAX_GWS6)) { in mirror_gws() 1026 progname, (family == AF_INET) ? "IPv4" : "IPv6"); in mirror_gws() 1039 get_hostinfo(char *host, int family, struct addrinfo **aipp) in get_hostinfo() argument 1085 if (family == AF_INET6) { in get_hostinfo() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/fdd-msg/ |
H A D | fdd_msg.c | 65 int32_t family; member 101 int32_t family, model; in fma_cap_cpu_info() local 120 nvlist_lookup_int32(nvl, FM_PHYSCPU_INFO_FAMILY, &family) != 0 || in fma_cap_cpu_info() 129 ci->family = family; in fma_cap_cpu_info() 149 "model=%d\n", ci.vendor, ci.family, ci.model); in get_cap_conf() 153 ci.family == cl->family && in get_cap_conf()
|
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | sockparams.c | 187 sockparams_create(int family, int type, int protocol, char *modname, in sockparams_create() argument 210 sp->sp_family = family; in sockparams_create() 361 sockparams_find(list_t *list, int family, int type, int protocol, in sockparams_find() argument 367 if (sp->sp_family == family && sp->sp_type == type) { in sockparams_find() 401 sockparams_hold_ephemeral(int family, int type, int protocol, in sockparams_hold_ephemeral() argument 411 sp = sockparams_find(&sp_ephem_list, family, type, protocol, in sockparams_hold_ephemeral() 435 newsp = sockparams_create(family, type, in sockparams_hold_ephemeral() 439 newsp = sockparams_create(family, type, in sockparams_hold_ephemeral() 467 sp = sockparams_find(&sp_ephem_list, family, type, protocol, in sockparams_hold_ephemeral() 498 sockparams_hold_ephemeral_bydev(int family, int type, int protocol, in sockparams_hold_ephemeral_bydev() argument [all …]
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | clnt_gen.c | 85 int family = AF_UNSPEC; in clnt_tli_kcreate() local 118 family = AF_INET; in clnt_tli_kcreate() 120 family = AF_INET6; in clnt_tli_kcreate() 121 error = clnt_cots_kcreate(config->knc_rdev, svcaddr, family, in clnt_tli_kcreate() 142 family = AF_INET; in clnt_tli_kcreate() 144 family = AF_INET6; in clnt_tli_kcreate() 146 (void *)config->knc_rdev, svcaddr, family, prog, vers, cred, in clnt_tli_kcreate() 183 int family = AF_UNSPEC; in clnt_tli_kinit() local 193 family = AF_INET; in clnt_tli_kinit() 195 family = AF_INET6; in clnt_tli_kinit() [all …]
|
/illumos-gate/usr/src/lib/libnsl/nis/gen/ |
H A D | nis_misc.c | 68 ep->family = strdup(nc->nc_protofmly); in __nis_netconfig2ep() 70 if (strcmp(ep->family, "inet6") == 0) { in __nis_netconfig2ep() 83 if (strcmp(nc->nc_protofmly, ep->family) != 0) in __nis_netconfig_matches_ep() 86 if (strcmp(ep->family, "inet6") == 0) in __nis_netconfig_matches_ep()
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | nfslog_ipaddr.c | 186 addhost(family, ipaddr, name) in addhost() argument 187 int family; in addhost() 194 switch (family) { 227 family); 247 int family = ((struct sockaddr_in *)sockp)->sin_family; in addrtoname() local 249 switch (family) { in addrtoname() 258 "family: %d\n", family); in addrtoname()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | neti_impl.c | 631 net_event_notify_register(net_handle_t family, char *event, in net_event_notify_register() argument 636 if (family->netd_condemned != 0 || family->netd_stack == NULL) in net_event_notify_register() 639 error = hook_event_notify_register(family->netd_hooks, event, in net_event_notify_register() 646 net_event_notify_unregister(net_handle_t family, char *event, in net_event_notify_unregister() argument 651 error = hook_event_notify_unregister(family->netd_hooks, event, in net_event_notify_unregister() 658 net_protocol_notify_register(net_handle_t family, hook_notify_fn_t callback, in net_protocol_notify_register() argument 663 if (family->netd_condemned != 0 || family->netd_stack == NULL) in net_protocol_notify_register() 666 error = hook_family_notify_register(family->netd_hooks, callback, in net_protocol_notify_register() 673 net_protocol_notify_unregister(net_handle_t family, hook_notify_fn_t callback) in net_protocol_notify_unregister() argument 677 error = hook_family_notify_unregister(family->netd_hooks, callback); in net_protocol_notify_unregister()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/ |
H A D | netcat.c | 103 int family = AF_UNSPEC; variable 158 family = AF_INET; in main() 161 family = AF_INET6; in main() 164 family = AF_UNIX; in main() 266 if (argv[0] && !argv[1] && family == AF_UNIX) { in main() 277 if (family == AF_UNIX) in main() 310 if (family != AF_UNIX) { in main() 312 hints.ai_family = family; in main() 326 if (family == AF_UNIX) in main() 329 if (family == AF_INET6) in main() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | ncu_ip.c | 299 find_nonstatic_address(const nwamd_ncu_t *ncu, sa_family_t family) in find_nonstatic_address() argument 305 (family == AF_INET ? "IPv4" : "IPv6"), ncu->ncu_name); in find_nonstatic_address() 310 if (family == AF_INET) { in find_nonstatic_address() 314 } else if (family == AF_INET6) { in find_nonstatic_address() 349 nwamd_static_addresses_configured(nwamd_ncu_t *ncu, sa_family_t family) in nwamd_static_addresses_configured() argument 356 if ((family == AF_UNSPEC || family == n->family) && in nwamd_static_addresses_configured() 453 if (n->family == AF_INET && in nwamd_v4_requested() 482 if (n->family == AF_INET6 && in nwamd_v6_requested() 873 ushort_t family; in nwamd_ncu_handle_if_state_event() local 878 family = if_state->nwe_addr.ss_family; in nwamd_ncu_handle_if_state_event() [all …]
|
/illumos-gate/usr/src/lib/nsswitch/dns/common/ |
H A D | dns_common.c | 426 int flags, family, pass2 = 0; in _nss_dns_gethost_withttl() local 493 family = arg.key.ipnode.af_family; in _nss_dns_gethost_withttl() 507 if (family == AF_INET && has_v4 == B_FALSE) { in _nss_dns_gethost_withttl() 511 if (family == AF_INET6 && has_v6 == B_FALSE && in _nss_dns_gethost_withttl() 516 if (family == AF_INET6 && has_v6) in _nss_dns_gethost_withttl() 518 if (family == AF_INET || (family == AF_INET6 && in _nss_dns_gethost_withttl() 523 if (family == AF_INET6) in _nss_dns_gethost_withttl() 529 if (family == AF_INET6) in _nss_dns_gethost_withttl() 568 if (pass2 == 1 || flags == 0 || family == AF_INET || in _nss_dns_gethost_withttl() 569 (family == AF_INET6 && !(flags & AI_V4MAPPED))) { in _nss_dns_gethost_withttl() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | daemon.c | 855 char family[5]; local 858 (void) sm_snprintf(family, 859 sizeof(family), 866 macid("{if_family}"), family); 869 addr, family); 1942 int family; local 1949 family = d.d_addr.sa.sa_family; 1950 STRUCTCOPY(d, ClientSettings[family]); 1951 setbitn(D_ISSET, ClientSettings[family].d_flags); /* mark as set */ 1953 ClientSettings[family].d_name = newstr(d.d_name); [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | selfcheck.c | 47 int family; in self_check() local 54 family = AF_INET6; in self_check() 63 if ((s = socket(family, SOCK_DGRAM, 0)) < 0) { in self_check() 68 if ((hostinfo = getipnodebyname(hostname, family, flags, in self_check()
|