Home
last modified time | relevance | path

Searched refs:AF_INET (Results 1 – 25 of 594) sorted by relevance

12345678910>>...24

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ipaddr.c123 return (addhost(AF_INET, &ipaddr, "BROADCAST", NULL)); in iplookup()
125 return (addhost(AF_INET, &ipaddr, "OLD-BROADCAST", NULL)); in iplookup()
136 AF_INET, &error_num); in iplookup()
138 np = getnetbyaddr(inet_netof(ipaddr), AF_INET); in iplookup()
140 return (addhost(AF_INET, &ipaddr, in iplookup()
149 retval = addhost(AF_INET, &ipaddr, in iplookup()
220 case AF_INET: in addhost()
260 if (family == AF_INET) { in addhost()
311 case AF_INET: in addrtoname()
348 family = AF_INET; in load_names()
[all …]
H A Dsnoop_igmp.c117 inet_ntop(AF_INET, &igmp->igmp_group.s_addr, in interpret_igmp()
144 "Group = %s", inet_ntop(AF_INET, &qry->igmp3q_group, addrstr, in interpret_igmpv3qry()
154 inet_ntop(AF_INET, &src->s_addr, addrstr, INET_ADDRSTRLEN)); in interpret_igmpv3qry()
199 "Group = %s type = %s", inet_ntop(AF_INET, in interpret_igmpv3rpt()
212 " %s", inet_ntop(AF_INET, &src->s_addr, addrstr, in interpret_igmpv3rpt()
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgethostent.c135 return (gethostbyname2_p(name, AF_INET, net_data)); in gethostbyname_p()
291 if ((v4 = inet_pton(AF_INET, name, &in4)) != 1) in getipnodebyname()
297 (af == AF_INET && v6 == 1) || in getipnodebyname()
300 (have_v4 == 0 && af == AF_INET) || in getipnodebyname()
318 he.h_addrtype = (v4 == 1) ? AF_INET : AF_INET6; in getipnodebyname()
339 ((af == AF_INET) || in getipnodebyname()
342 he2 = gethostbyname2_p(name, AF_INET, net_data); in getipnodebyname()
376 case AF_INET:
400 (af == AF_INET)) {
405 he1 = gethostbyaddr_p(cp, 4, AF_INET, net_data);
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/
H A Dnfslog_ipaddr.c110 return (addhost(AF_INET, ipaddr, "BROADCAST"));
112 return (addhost(AF_INET, ipaddr, "OLD-BROADCAST"));
123 AF_INET, &error_num);
125 np = getnetbyaddr(inet_netof(*ipaddr), AF_INET);
127 return (addhost(AF_INET, ipaddr, np->n_name));
134 return (addhost(AF_INET, ipaddr, hp ? hp->h_name : inet_ntoa(*ipaddr)));
195 case AF_INET:
250 case AF_INET: in addrtoname()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/talk/
H A Dctl.c49 struct sockaddr_in daemon_addr = { AF_INET };
50 struct sockaddr_in ctl_addr = { AF_INET };
51 struct sockaddr_in my_addr = { AF_INET };
73 sockt = socket(AF_INET, SOCK_STREAM, 0); in open_sockt()
100 ctl_sockt = socket(AF_INET, SOCK_DGRAM, 0); in open_ctl()
H A Dlook_up.c151 if (rsp.addr.sin_family != AF_INET) {
153 if (swaprsp.addr.sin_family == AF_INET) {
182 if (rsp.addr.sin_family != AF_INET) {
184 if (swaprsp.sin_family == AF_INET) {
/illumos-gate/usr/src/common/smbsrv/
H A Dsmb_inet.c58 if ((ip1->a_family == AF_INET) && in smb_inet_equal()
59 (ip2->a_family == AF_INET) && in smb_inet_equal()
74 if ((ip1->a_family == AF_INET) && in smb_inet_same_subnet()
75 (ip2->a_family == AF_INET) && in smb_inet_same_subnet()
92 if ((ipaddr->a_family == AF_INET) && in smb_inet_iszero()
/illumos-gate/usr/src/lib/print/libhttp-core/common/
H A Dhttp-addr.c59 if (addr->addr.sa_family == AF_INET && in httpAddrAny()
120 if (host->h_addrtype == AF_INET) in httpAddrLoad()
130 addr->ipv4.sin_family = AF_INET; in httpAddrLoad()
154 if (addr->addr.sa_family == AF_INET && in httpAddrLocalhost()
198 if (addr->addr.sa_family == AF_INET) in httpAddrLookup()
200 sizeof(struct in_addr), AF_INET); in httpAddrLookup()
242 if (addr->addr.sa_family == AF_INET) in httpAddrString()
343 host_ip.h_addrtype = AF_INET; in httpGetHostByName()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping.c290 family_input = AF_INET; in main()
352 } else if (inet_pton(AF_INET, optarg, in main()
542 to.sin_family = AF_INET; in main()
589 if (family_input == AF_INET || in main()
645 if (!setup_socket(AF_INET, &send_sock, &recv_sock, &if_index, in main()
661 mirror_gws(gw_IP_list, AF_INET); in main()
690 if (ai_dst->ai_family == AF_INET) { in main()
691 (void) inet_ntop(AF_INET, in main()
764 if (aip->ai_family == AF_INET && num_v4 != 0) { in build_targetaddr_list()
804 case AF_INET: in create_targetaddr_item()
[all …]
H A Dping_aux.c403 (void) inet_ntop(AF_INET, (void *)&ip->ip_dst, in check_reply()
450 pr_name((char *)&ip->ip_src, AF_INET)); in check_reply()
451 Printf(" to %s", pr_name((char *)&ip->ip_dst, AF_INET)); in check_reply()
513 pr_name((char *)&icp->icmp_gwaddr, AF_INET)); in check_reply()
515 pr_name((char *)&ip->ip_dst, AF_INET)); in check_reply()
606 (void) inet_ntop(AF_INET, in check_reply()
610 (void) inet_ntop(AF_INET, in check_reply()
651 pr_name((char *)&dst_addr.addr, AF_INET)); in check_reply()
702 pr_name((char *)&ip->ip_src, AF_INET)); in check_reply()
703 Printf(" to %s", pr_name((char *)&ip->ip_dst, AF_INET)); in check_reply()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute.c302 family_input = AF_INET; in main()
578 setup_protocol(pr4, AF_INET); in main()
599 case AF_INET: in main()
606 setup_protocol(pr4, AF_INET); in main()
617 if (ai_dst->ai_family == AF_INET) { in main()
621 inet_ntop(AF_INET, in main()
686 case AF_INET: in resolve_nodes()
714 if (*family == AF_INET || *family == AF_UNSPEC) in resolve_nodes()
747 (void) inet_ntop(AF_INET, &addr, abuf, sizeof (abuf)); in get_hostinfo()
908 if (pr->family == AF_INET) in set_src_addr()
[all …]
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Dserver.c85 if (ssp->ss_family == AF_INET) { in isns_connection()
86 (void) inet_ntop(AF_INET, in isns_connection()
171 if (ssp->ss_family == AF_INET) { in isns_connection()
172 (void) inet_ntop(AF_INET, in isns_connection()
240 if ((s = socket(AF_INET, SOCK_STREAM, 0)) != -1) { in isns_port_watcher()
246 sin.sin_family = AF_INET; in isns_port_watcher()
301 if (ssp->ss_family == AF_INET) { in isns_port_watcher()
302 (void) inet_ntop(AF_INET, (void *)&(sinp->sin_addr), in isns_port_watcher()
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dnetdir_inet_sundry.c221 sa->sin_family = AF_INET; in ip_uaddr2taddr()
336 lifn.lifn_family = AF_INET; in get_if_info()
339 if (nss_ioctl(AF_INET, SIOCGLIFNUM, &lifn) == -1) { in get_if_info()
358 lifc.lifc_family = AF_INET; in get_if_info()
362 if (nss_ioctl(AF_INET, SIOCGLIFCONF, &lifc) == -1) { in get_if_info()
394 if (lifr->lifr_addr.ss_family != AF_INET) in get_if_info()
400 if (nss_ioctl(AF_INET, SIOCGLIFFLAGS, lifr) < 0) in get_if_info()
407 if (nss_ioctl(AF_INET, SIOCGLIFNETMASK, lifr) < 0) in get_if_info()
490 if (h->h_addrtype != AF_INET) in __inet_netdir_is_my_host()
662 if (family == AF_INET) { in select_server_addr()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/
H A Dilbadm_nat.c60 (void) printf("%s.%d > ", inet_ntop(AF_INET, &addr_v4, addr, in print_nat_info()
63 (void) printf("%s.%d >>> ", inet_ntop(AF_INET, &addr_v4, addr, in print_nat_info()
67 (void) printf("%s.%d > ", inet_ntop(AF_INET, &addr_v4, addr, in print_nat_info()
70 (void) printf("%s.%d\n", inet_ntop(AF_INET, &addr_v4, addr, in print_nat_info()
99 (void) printf("%s --> ", inet_ntop(AF_INET, &addr_v4, addr, in print_persist_info()
102 (void) printf("%s\n", inet_ntop(AF_INET, &addr_v4, addr, in print_persist_info()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/ilb/
H A Dilb_probe.c196 if (inet_pton(AF_INET, argv[1], &v4addr) == 0) in parse_probe_param()
212 if (inet_pton(AF_INET, argv[2], &v4addr) == 0) in parse_probe_param()
264 af = AF_INET; in set_sockaddr()
267 v4_addr->sin_family = AF_INET; in set_sockaddr()
288 if (af == AF_INET) { in set_sockaddr()
335 if (af == AF_INET) { in tcp_query()
569 if (af == AF_INET) { in wait_icmp_reply()
621 if (addr.ss_family == AF_INET) in get_lport()
654 if ((recv_sd = socket(af, SOCK_RAW, (af == AF_INET) ? IPPROTO_ICMP : in udp_query()
661 if (af == AF_INET) { in udp_query()
[all …]
/illumos-gate/usr/src/lib/nsswitch/dns/common/
H A Ddns_common.c74 len = (af_type == AF_INET) ? sizeof (struct in_addr) : in dns_netdb_aliases()
123 host->h_length = (af_type == AF_INET) ? sizeof (struct in_addr) : in ent2result()
135 if (af_type == AF_INET) { in ent2result()
149 if (he->h_addrtype == AF_INET && af_type == AF_INET6) { in ent2result()
206 if (af_type == AF_INET && hp->h_addrtype != AF_INET) in ent2str()
223 af = AF_INET; in ent2str()
230 af = AF_INET; in ent2str()
343 if (i->ifa_addr->sa_family == AF_INET) { in _nss_has_interfaces()
507 if (family == AF_INET && has_v4 == B_FALSE) { in _nss_dns_gethost_withttl()
518 if (family == AF_INET || (family == AF_INET6 && in _nss_dns_gethost_withttl()
[all …]
/illumos-gate/usr/src/uts/common/inet/kifconf/
H A Dkifconf.c48 if (af == AF_INET) { in kivoid_to_sock()
79 if (af == AF_INET) { in kdlifconfig()
98 if (af == AF_INET) { in kdlifconfig()
120 if (af == AF_INET && mybraddr != NULL) { in kdlifconfig()
145 if (af == AF_INET && gateway != NULL) { in kdlifconfig()
148 rt_sin->sin_family = AF_INET; in kdlifconfig()
/illumos-gate/usr/src/cmd/cmd-inet/sbin/ifparse/
H A Difparse.c96 typedef enum { AF_UNSPEC, AF_INET, AF_INET6, AF_ANY } ac_t; enumerator
157 { "arp", 0, AF_INET, PARSENOW },
158 { "-arp", 0, AF_INET, PARSENOW },
177 { "netmask", NEXTARG, AF_INET, 0 },
181 { "broadcast", NEXTARG, AF_INET, 0 },
182 { "auto-revarp", 0, AF_INET, PARSEFIXED},
228 { "inet", AF_INET },
/illumos-gate/usr/src/lib/nsswitch/mdns/common/
H A Dgethostent.c52 return (_nss_mdns_querybyname(be, hname, AF_INET, &qdata));
71 if ((argp->key.hostaddr.type != AF_INET) ||
77 if (inet_ntop(AF_INET, (void *) &addr.s_addr,
82 qdata.af = AF_INET;
/illumos-gate/usr/src/lib/libstmfproxy/common/
H A Dstmftransport.c88 if ((sfd = socket(AF_INET, SOCK_STREAM, 0)) <= 0) { in pt_socket_connect()
104 serv_addr.sin_family = AF_INET; in pt_socket_connect()
152 sin.sin_family = AF_INET; in pt_socket_connect()
161 sfd = socket(AF_INET, SOCK_STREAM, 0); in pt_socket_connect()
/illumos-gate/usr/src/lib/udapl/libdat/include/dat/
H A Ddat_platform_specific.h130 #define DAT_AF_INET AF_INET
161 #define DAT_AF_INET AF_INET
186 #define DAT_AF_INET AF_INET
/illumos-gate/usr/src/cmd/ypcmd/
H A Dypserv_net_secure.c147 if (af == AF_INET) { in check_secure_net_ti()
177 stringaf = (strchr(string, ':') != 0) ? AF_INET6 : AF_INET; in string2inaddr()
180 if (*af == AF_INET) { in string2inaddr()
182 stringaf = AF_INET; in string2inaddr()
210 } else if (af == AF_INET) { in addrequal()
/illumos-gate/usr/src/lib/libinetutil/common/
H A Dinetutil.c89 case AF_INET: in sockaddrcmp()
116 if (af == AF_INET) { in plen2mask()
157 if (mask->sa_family == AF_INET) { in mask2plen()
193 case AF_INET: in sockaddrunspec()
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_if.c164 s = (lifrp->lifr_addr.ss_family == AF_INET) ? in i_ipadm_active_if_info()
278 if (families[nelem] == AF_INET) in i_ipadm_nvl2ifinfo()
621 *exists = ((af == AF_INET && in i_ipadm_if_pexists()
694 sock = (af == AF_INET ? iph->iph_sock : iph->iph_sock6); in i_ipadm_create_ipmp()
729 assert(af == AF_INET || af == AF_INET6); in i_ipadm_create_ipmp_peer()
731 other_af_sock = (af == AF_INET ? iph->iph_sock6 : iph->iph_sock); in i_ipadm_create_ipmp_peer()
751 (af == AF_INET && lifgr.gi_v4) || (af == AF_INET6 && lifgr.gi_v6)) { in i_ipadm_create_ipmp_peer()
876 af = AF_INET; in i_ipadm_slifname()
944 if (af == AF_INET) in i_ipadm_plumb_if()
1017 if (af == AF_INET) { in i_ipadm_plumb_if()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Darp.c231 sin->sin_family = AF_INET; in set()
281 s = socket(AF_INET, SOCK_DGRAM, 0); in set()
309 sin->sin_family = AF_INET; in get()
321 s = socket(AF_INET, SOCK_DGRAM, 0); in get()
375 sin->sin_family = AF_INET; in delete()
387 s = socket(AF_INET, SOCK_DGRAM, 0); in delete()

12345678910>>...24