Home
last modified time | relevance | path

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

12345678910>>...25

/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping_aux.c294 pr_name((char *)&from->sin_addr, AF_INET)); in check_reply()
324 AF_INET)); in check_reply()
412 (void) inet_ntop(AF_INET, (void *)&ip->ip_dst, in check_reply()
448 pr_name((char *)&from->sin_addr, AF_INET)); in check_reply()
455 pr_name((char *)&from->sin_addr, AF_INET)); in check_reply()
459 pr_name((char *)&from->sin_addr, AF_INET)); in check_reply()
462 pr_name((char *)&ip->ip_src, AF_INET)); in check_reply()
463 Printf(" to %s", pr_name((char *)&ip->ip_dst, AF_INET)); in check_reply()
510 AF_INET)); in check_reply()
521 pr_name((char *)&from->sin_addr, AF_INET)); in check_reply()
[all …]
H A Dping.c276 family_input = AF_INET; in main()
338 } else if (inet_pton(AF_INET, optarg, in main()
528 to.sin_family = AF_INET; in main()
575 if (family_input == AF_INET || in main()
631 if (!setup_socket(AF_INET, &send_sock, &recv_sock, &if_index, in main()
647 mirror_gws(gw_IP_list, AF_INET); in main()
676 if (ai_dst->ai_family == AF_INET) { in main()
677 (void) inet_ntop(AF_INET, in main()
733 if (aip->ai_family == AF_INET && num_v4 != 0) { in build_targetaddr_list()
844 case AF_INET: in resolve_nodes()
[all …]
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ipaddr.c106 return (addhost(AF_INET, &ipaddr, "BROADCAST", NULL)); in iplookup()
108 return (addhost(AF_INET, &ipaddr, "OLD-BROADCAST", NULL)); in iplookup()
118 AF_INET, &error_num); in iplookup()
120 np = getnetbyaddr(inet_netof(ipaddr), AF_INET); in iplookup()
122 return (addhost(AF_INET, &ipaddr, np->n_name, in iplookup()
128 retval = addhost(AF_INET, &ipaddr, in iplookup()
195 case AF_INET: in addhost()
235 if (family == AF_INET) { in addhost()
286 case AF_INET: in addrtoname()
324 family = AF_INET;
[all …]
H A Dsnoop_igmp.c119 inet_ntop(AF_INET, &igmp->igmp_group.s_addr, in interpret_igmp()
146 "Group = %s", inet_ntop(AF_INET, &qry->igmp3q_group, addrstr, in interpret_igmpv3qry()
156 inet_ntop(AF_INET, &src->s_addr, addrstr, INET_ADDRSTRLEN)); in interpret_igmpv3qry()
201 "Group = %s type = %s", inet_ntop(AF_INET, in interpret_igmpv3rpt()
214 " %s", inet_ntop(AF_INET, &src->s_addr, addrstr, in interpret_igmpv3rpt()
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/talk/
H A Dctl.c51 struct sockaddr_in daemon_addr = { AF_INET };
52 struct sockaddr_in ctl_addr = { AF_INET };
53 struct sockaddr_in my_addr = { AF_INET };
75 sockt = socket(AF_INET, SOCK_STREAM, 0); in open_sockt()
102 ctl_sockt = socket(AF_INET, SOCK_DGRAM, 0); in open_ctl()
H A Dlook_up.c153 if (rsp.addr.sin_family != AF_INET) {
155 if (swaprsp.addr.sin_family == AF_INET) {
184 if (rsp.addr.sin_family != AF_INET) {
186 if (swaprsp.sin_family == AF_INET) {
/titanic_44/usr/src/common/smbsrv/
H A Dsmb_inet.c56 if ((ip1->a_family == AF_INET) && in smb_inet_equal()
57 (ip2->a_family == AF_INET) && in smb_inet_equal()
72 if ((ip1->a_family == AF_INET) && in smb_inet_same_subnet()
73 (ip2->a_family == AF_INET) && in smb_inet_same_subnet()
90 if ((ipaddr->a_family == AF_INET) && in smb_inet_iszero()
/titanic_44/usr/src/cmd/fs.d/nfs/nfslog/
H A Dnfslog_ipaddr.c112 return (addhost(AF_INET, ipaddr, "BROADCAST"));
114 return (addhost(AF_INET, ipaddr, "OLD-BROADCAST"));
125 AF_INET, &error_num);
127 np = getnetbyaddr(inet_netof(*ipaddr), AF_INET);
129 return (addhost(AF_INET, ipaddr, np->n_name));
136 return (addhost(AF_INET, ipaddr, hp ? hp->h_name : inet_ntoa(*ipaddr)));
197 case AF_INET:
252 case AF_INET: in addrtoname()
/titanic_44/usr/src/lib/libresolv2/common/irs/
H A Dgethostent.c139 return (gethostbyname2_p(name, AF_INET, net_data)); in gethostbyname_p()
295 if ((v4 = inet_pton(AF_INET, name, &in4)) != 1) in getipnodebyname()
301 (af == AF_INET && v6 == 1) || in getipnodebyname()
304 (have_v4 == 0 && af == AF_INET) || in getipnodebyname()
322 he.h_addrtype = (v4 == 1) ? AF_INET : AF_INET6; in getipnodebyname()
343 ((af == AF_INET) || in getipnodebyname()
346 he2 = gethostbyname2_p(name, AF_INET, net_data); in getipnodebyname()
380 case AF_INET:
404 (af == AF_INET)) {
409 he1 = gethostbyaddr_p(cp, 4, AF_INET, net_data);
[all …]
/titanic_44/usr/src/cmd/ssh/libssh/common/
H A Daddrmatch.c55 case AF_INET: in addr_unicast_masklen()
68 case AF_INET: in masklen_valid()
92 case AF_INET: in addr_sa_to_xaddr()
95 xa->af = AF_INET; in addr_sa_to_xaddr()
129 case AF_INET: in addr_netmask()
130 n->af = AF_INET; in addr_netmask()
160 case AF_INET: in addr_and()
186 case AF_INET: in addr_cmp()
243 case AF_INET: in addr_invert()
278 case AF_INET: in addr_is_all0s()
/titanic_44/usr/src/lib/print/libhttp-core/common/
H A Dhttp-addr.c61 if (addr->addr.sa_family == AF_INET && in httpAddrAny()
122 if (host->h_addrtype == AF_INET) in httpAddrLoad()
132 addr->ipv4.sin_family = AF_INET; in httpAddrLoad()
156 if (addr->addr.sa_family == AF_INET && in httpAddrLocalhost()
200 if (addr->addr.sa_family == AF_INET) in httpAddrLookup()
202 sizeof(struct in_addr), AF_INET); in httpAddrLookup()
244 if (addr->addr.sa_family == AF_INET) in httpAddrString()
345 host_ip.h_addrtype = AF_INET; in httpGetHostByName()
/titanic_44/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()
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute.c289 family_input = AF_INET; in main()
554 setup_protocol(pr4, AF_INET); in main()
575 case AF_INET: in main()
582 setup_protocol(pr4, AF_INET); in main()
593 if (ai_dst->ai_family == AF_INET) { in main()
597 inet_ntop(AF_INET, in main()
662 case AF_INET: in resolve_nodes()
690 if (*family == AF_INET || *family == AF_UNSPEC) in resolve_nodes()
723 (void) inet_ntop(AF_INET, &addr, abuf, sizeof (abuf)); in get_hostinfo()
884 if (pr->family == AF_INET) in set_src_addr()
[all …]
/titanic_44/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()
/titanic_44/usr/src/lib/libnsl/nss/
H A Dnetdir_inet_sundry.c220 sa->sin_family = AF_INET; in ip_uaddr2taddr()
335 lifn.lifn_family = AF_INET; in get_if_info()
338 if (nss_ioctl(AF_INET, SIOCGLIFNUM, &lifn) == -1) { in get_if_info()
357 lifc.lifc_family = AF_INET; in get_if_info()
361 if (nss_ioctl(AF_INET, SIOCGLIFCONF, &lifc) == -1) { in get_if_info()
393 if (lifr->lifr_addr.ss_family != AF_INET) in get_if_info()
399 if (nss_ioctl(AF_INET, SIOCGLIFFLAGS, lifr) < 0) in get_if_info()
406 if (nss_ioctl(AF_INET, SIOCGLIFNETMASK, lifr) < 0) in get_if_info()
489 if (h->h_addrtype != AF_INET) in __inet_netdir_is_my_host()
661 if (family == AF_INET) { in select_server_addr()
[all …]
/titanic_44/usr/src/lib/nsswitch/dns/common/
H A Ddns_common.c74 len = (af_type == AF_INET) ? sizeof (struct in_addr)
125 host->h_length = (af_type == AF_INET) ? sizeof (struct in_addr)
137 if (af_type == AF_INET) {
154 if (he->h_addrtype == AF_INET && af_type == AF_INET6) {
214 if (af_type == AF_INET && hp->h_addrtype != AF_INET) in ent2str()
231 af = AF_INET; in ent2str()
238 af = AF_INET; in ent2str()
350 if (i->ifa_addr->sa_family == AF_INET) { in _nss_has_interfaces()
514 if (family == AF_INET && has_v4 == B_FALSE) { in _nss_dns_gethost_withttl()
525 if (family == AF_INET || (family == AF_INET6 && in _nss_dns_gethost_withttl()
[all …]
/titanic_44/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 …]
/titanic_44/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()
/titanic_44/usr/src/lib/nsswitch/mdns/common/
H A Dgethostent.c54 return (_nss_mdns_querybyname(be, hname, AF_INET, &qdata));
73 if ((argp->key.hostaddr.type != AF_INET) ||
79 if (inet_ntop(AF_INET, (void *) &addr.s_addr,
84 qdata.af = AF_INET;
/titanic_44/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 },
/titanic_44/usr/src/lib/libipadm/common/
H A Dipadm_if.c146 s = (lifrp->lifr_addr.ss_family == AF_INET) ? in i_ipadm_active_if_info()
392 *exists = ((af == AF_INET && in i_ipadm_if_pexists()
465 sock = (af == AF_INET ? iph->iph_sock : iph->iph_sock6); in i_ipadm_create_ipmp()
500 assert(af == AF_INET || af == AF_INET6); in i_ipadm_create_ipmp_peer()
502 other_af_sock = (af == AF_INET ? iph->iph_sock6 : iph->iph_sock); in i_ipadm_create_ipmp_peer()
522 (af == AF_INET && lifgr.gi_v4) || (af == AF_INET6 && lifgr.gi_v6)) { in i_ipadm_create_ipmp_peer()
647 af = AF_INET; in i_ipadm_slifname()
715 if (af == AF_INET) in i_ipadm_plumb_if()
787 if (af == AF_INET) { in i_ipadm_plumb_if()
953 if (ioctl((af == AF_INET) ? iph->iph_sock : iph->iph_sock6, in i_ipadm_unplumb_if()
[all …]
/titanic_44/usr/src/lib/libstmfproxy/common/
H A Dstmftransport.c84 if ((sfd = socket(AF_INET, SOCK_STREAM, 0)) <= 0) { in pt_socket_connect()
100 serv_addr.sin_family = AF_INET; in pt_socket_connect()
148 sin.sin_family = AF_INET; in pt_socket_connect()
157 sfd = socket(AF_INET, SOCK_STREAM, 0); in pt_socket_connect()
/titanic_44/usr/src/lib/udapl/libdat/include/dat/
H A Ddat_platform_specific.h132 #define DAT_AF_INET AF_INET
163 #define DAT_AF_INET AF_INET
188 #define DAT_AF_INET AF_INET
/titanic_44/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()
/titanic_44/usr/src/cmd/ypcmd/
H A Dypserv_net_secure.c149 if (af == AF_INET) { in check_secure_net_ti()
179 stringaf = (strchr(string, ':') != 0) ? AF_INET6 : AF_INET; in string2inaddr()
182 if (*af == AF_INET) { in string2inaddr()
184 stringaf = AF_INET; in string2inaddr()
212 } else if (af == AF_INET) { in addrequal()

12345678910>>...25