Home
last modified time | relevance | path

Searched refs:addr6 (Results 1 – 25 of 34) sorted by relevance

12

/titanic_41/usr/src/lib/libdscp/
H A Dlibdscp.c72 struct sockaddr_in6 addr6; in dscpBind() local
111 if (convert_ipv4(&addr, &addr6, &len6) < 0) { in dscpBind()
115 if (bind(sockfd, (struct sockaddr *)&addr6, len6) < 0) { in dscpBind()
463 convert_ipv6(struct sockaddr_in6 *addr6, uint32_t *addrp) in convert_ipv6() argument
472 if (inet_ntop(AF_INET6, &addr6->sin6_addr, ipv6str, in convert_ipv6()
506 convert_ipv4(struct sockaddr_in *addr, struct sockaddr_in6 *addr6, int *lenp) in convert_ipv4() argument
532 (void) memset(addr6, 0, sizeof (*addr6)); in convert_ipv4()
533 addr6->sin6_family = AF_INET6; in convert_ipv4()
534 addr6->sin6_port = addr->sin_port; in convert_ipv4()
535 if (inet_pton(AF_INET6, ipv6str, &addr6->sin6_addr) <= 0) { in convert_ipv4()
/titanic_41/usr/src/lib/libnsl/nss/
H A Dgetipnodeby.c438 struct in6_addr *addr6 = 0; in getipnodebyaddr() local
450 if ((addr6 = (struct in6_addr *)src) == NULL) { in getipnodebyaddr()
466 if (type == AF_INET6 && IN6_IS_ADDR_UNSPECIFIED(addr6)) { in getipnodebyaddr()
474 ((IN6_IS_ADDR_V4MAPPED(addr6)) || in getipnodebyaddr()
475 (IN6_IS_ADDR_V4COMPAT(addr6)))) { in getipnodebyaddr()
487 if (IN6_IS_ADDR_V4COMPAT(addr6)) { in getipnodebyaddr()
488 (void) memcpy(tmpbuf, addr6, sizeof (*addr6)); in getipnodebyaddr()
493 nssin.arg.nss.host.addr = (const char *)addr6; in getipnodebyaddr()
513 if (!gethostbyaddr_r(((char *)addr6) + 12, in getipnodebyaddr()
528 IN6_IS_ADDR_V4MAPPED(addr6)); in getipnodebyaddr()
[all …]
H A Dnetdir_inet_sundry.c642 struct in6_addr addr6; member
673 sin6->sin6_addr = dst_addr->addr6; in select_server_addr()
700 (void) memset(src_addr->addr6.s6_addr, in select_server_addr()
723 src_addr->addr6 = sin6->sin6_addr; in select_server_addr()
858 in_addr.addr6 = sa.sin6_addr; in inet_netdir_mergeaddr()
867 server_addr.sin6_addr = out_addr.addr6; in inet_netdir_mergeaddr()
/titanic_41/usr/src/lib/nsswitch/files/common/
H A Dtsol_getrhent.c96 char addr6[INET6_ADDRSTRLEN + 5]; /* 5 '\' for ':' */ in getbyaddr() local
108 escape_colon(argp->key.hostaddr.addr, addr6); in getbyaddr()
112 argp->key.hostaddr.addr = addr6; in getbyaddr()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping.c955 &gwIPlist6[i].addr6, in get_gwaddrs()
990 gwIPlist[num_gw + i + 1].addr6 = gwIPlist[num_gw - i - 1].addr6; in mirror_gws()
1001 struct in6_addr addr6; in get_hostinfo() local
1014 if (((inet_pton(AF_INET6, host, &addr6) > 0) && in get_hostinfo()
1015 IN6_IS_ADDR_V4MAPPED(&addr6)) || broadcast) { in get_hostinfo()
1021 IN6_V4MAPPED_TO_INADDR(&addr6, &addr); in get_hostinfo()
1168 sin6->sin6_addr = dst_addr->addr6; in select_src_addr()
1192 src_addr->addr6 = in6addr_any; in select_src_addr()
1207 src_addr->addr6 = sin6->sin6_addr; in select_src_addr()
1659 if (IN6_ARE_ADDR_EQUAL(&out_if.id.addr.addr6, in find_if()
[all …]
H A Dping_aux6.c213 if (inet6_rth_add(rthdr0p, &gwIPlist[i].addr6) == -1) { in set_ancillary_data()
481 dst_addr.addr6 = ip6h->ip6_dst; in check_reply6()
558 dst_addr.addr6 = ip6h->ip6_dst; in check_reply6()
593 dst_addr.addr6 = ip6h->ip6_dst; in check_reply6()
636 dst_addr.addr6 = ip6h->ip6_dst; in check_reply6()
762 (void *)&dst_addr.addr6, in check_reply6()
808 pr_name((char *)&dst_addr.addr6, AF_INET6)); in check_reply6()
866 dst_addr.addr6 = nd_rdrct->nd_rd_dst; in check_reply6()
/titanic_41/usr/src/lib/nsswitch/ldap/common/
H A Dtsol_getrhent.c81 char addr6[INET6_ADDRSTRLEN + 5]; /* 5 '\' for ':' at most */ in _nss_ldap_tnrhdb2str() local
97 escape_colon(addr[0], addr6); in _nss_ldap_tnrhdb2str()
98 addr_out = addr6; in _nss_ldap_tnrhdb2str()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute.c708 struct in6_addr addr6; in get_hostinfo() local
717 if ((inet_pton(AF_INET6, host, &addr6) > 0) && in get_hostinfo()
718 IN6_IS_ADDR_V4MAPPED(&addr6)) { in get_hostinfo()
720 IN6_V4MAPPED_TO_INADDR(&addr6, &addr); in get_hostinfo()
1143 &gwIPlist6[i].addr6, in get_gwaddrs()
1463 ((struct sockaddr_in6 *)sock)->sin6_addr = addr->addr6; in set_sin()
1506 struct in6_addr addr6; in traceroute() local
1568 inet_pton(AF_INET6, hostname, &addr6) > 0) { in traceroute()
1622 lastaddr.addr6 = in6addr_any; in traceroute()
1821 sin6->sin6_addr = dst_addr->addr6; in select_src_addr()
[all …]
H A Dtraceroute_aux6.c232 &gwIPlist[i].addr6) == -1) { in set_ancillary_data()
657 ip_addr.addr6 = from_in6->sin6_addr; in print_addr6()
/titanic_41/usr/src/lib/ncad_addr/common/
H A Dncad_addr.c143 struct in6_addr addr6; in ncad_init() local
145 if (inet_pton(AF_INET6, p, &addr6) == 1) { in ncad_init()
/titanic_41/usr/src/uts/common/c2/
H A Daudit_token.c994 struct sockaddr_in6 *addr6; in au_to_socket_ex() local
1008 addr6 = (struct sockaddr_in6 *)l; in au_to_socket_ex()
1009 adr_short(&adr, (short *)&addr6->sin6_port, 1); in au_to_socket_ex()
1010 adr_char(&adr, (char *)&addr6->sin6_addr, size); in au_to_socket_ex()
1011 addr6 = (struct sockaddr_in6 *)f; in au_to_socket_ex()
1012 adr_short(&adr, (short *)&addr6->sin6_port, 1); in au_to_socket_ex()
1013 adr_char(&adr, (char *)&addr6->sin6_addr, size); in au_to_socket_ex()
/titanic_41/usr/src/cmd/ssh/libssh/common/
H A Dcanohost.c167 struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)&addr; in get_socket_address() local
205 addr6->sin6_addr.s6_addr, abuf, sizeof (abuf)); in get_socket_address()
/titanic_41/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dconditions.c444 struct sockaddr_in6 addr6; in check_ipaddr() local
455 (void) memcpy(&addr6, ifa->ifa_addr, sizeof (addr6)); in check_ipaddr()
456 addr1 = (uchar_t *)(&addr6.sin6_addr.s6_addr); in check_ipaddr()
/titanic_41/usr/src/lib/libinetutil/common/
H A Dlibinetutil.h82 struct in6_addr addr6; member
H A Difaddrlist.c162 al->addr.addr6 = sin6->sin6_addr; in ifaddrlist()
/titanic_41/usr/src/uts/common/fs/nfs/
H A Dnfs4_srv_deleg.c444 struct sockaddr_in6 addr6; in rfs4_cbch_init() local
514 size = sizeof (addr6); in rfs4_cbch_init()
515 bzero(&addr6, size); in rfs4_cbch_init()
516 addr6.sin6_family = (sa_family_t)af; in rfs4_cbch_init()
517 addr = &addr6.sin6_addr; in rfs4_cbch_init()
518 pp = &addr6.sin6_port; in rfs4_cbch_init()
519 taddr = &addr6; in rfs4_cbch_init()
/titanic_41/usr/src/uts/common/inet/sctp/
H A Dsctp_common.c1423 in6_addr_t *addr6; in sctp_get_addrparams() local
1426 addr6 = (in6_addr_t *)(ph + 1); in sctp_get_addrparams()
1431 if (IN6_IS_ADDR_LINKLOCAL(addr6) || in sctp_get_addrparams()
1432 IN6_IS_ADDR_MULTICAST(addr6) || in sctp_get_addrparams()
1433 IN6_IS_ADDR_LOOPBACK(addr6) || in sctp_get_addrparams()
1434 IN6_IS_ADDR_V4MAPPED(addr6)) { in sctp_get_addrparams()
1438 if (sctp_lookup_faddr(sctp, addr6) != NULL) in sctp_get_addrparams()
/titanic_41/usr/src/lib/libipadm/common/
H A Dipadm_persist.c395 struct in6_addr addr6; in i_ipadm_add_intfid2nvl() local
413 addr6 = addr->ipadm_intfid.sin6_addr; in i_ipadm_add_intfid2nvl()
415 addr6.s6_addr, 16)) != 0) { in i_ipadm_add_intfid2nvl()
/titanic_41/usr/src/cmd/fs.d/nfs/statd/
H A Dsm_statd.c1302 char *addr6; in record_addr() local
1313 addr6 = (char *)ah->n_bytes; in record_addr()
1322 ((struct in6_addr *)addr6)->s6_addr); in record_addr()
1352 inet_ntop(family, addr6, abuf, sizeof (abuf))); in record_addr()
/titanic_41/usr/src/uts/common/inet/ip/
H A Dip_ndp.c713 in6_addr_t addr6; in ncec_lookup_illgrp_v4() local
721 IN6_IPADDR_TO_V4MAPPED(*addr, &addr6); in ncec_lookup_illgrp_v4()
722 ncec = ncec_lookup_illgrp(ill, &addr6, ncec); in ncec_lookup_illgrp_v4()
779 in6_addr_t addr6; in nce_lookup_v4() local
783 IN6_IPADDR_TO_V4MAPPED(*addr, &addr6); in nce_lookup_v4()
784 nce = nce_lookup_addr(ill, &addr6); in nce_lookup_v4()
795 nce_lookup_v6(ill_t *ill, const in6_addr_t *addr6) in nce_lookup_v6() argument
801 nce = nce_lookup_addr(ill, addr6); in nce_lookup_v6()
1230 in6_addr_t *addr6 = (in6_addr_t *)mp->b_rptr; in ip_addr_recover() local
1241 addr6); in ip_addr_recover()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_dns.c748 in6_addr_t addr6; in print_ip() local
761 addr = memcpy(&addr6, data, sizeof (addr6)); in print_ip()
/titanic_41/usr/src/cmd/cmd-inet/lib/ipmgmtd/
H A Dipmgmt_door.c255 uint8_t *addr6; in i_ipmgmt_nvl2aobjnode() local
265 IPADM_NVP_IPNUMADDR, &addr6, &n) != 0) in i_ipmgmt_nvl2aobjnode()
267 bcopy(addr6, &sin6->sin6_addr, n); in i_ipmgmt_nvl2aobjnode()
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DmDNSUNP.c101 char addr6[32+7+1]; /* don't forget the seven ':' */ in get_ifi_info_linuxv6() local
134 sprintf(addr6, "%s:%s:%s:%s:%s:%s:%s:%s", in get_ifi_info_linuxv6()
142 err = getaddrinfo(addr6, NULL, &hints, &res0); in get_ifi_info_linuxv6()
/titanic_41/usr/src/uts/common/io/idm/
H A Didm_so.c369 idm_v6_addr_okay(struct in6_addr *addr6) in idm_v6_addr_okay() argument
372 if ((IN6_IS_ADDR_UNSPECIFIED(addr6)) || in idm_v6_addr_okay()
373 (IN6_IS_ADDR_LOOPBACK(addr6)) || in idm_v6_addr_okay()
374 (IN6_IS_ADDR_MULTICAST(addr6)) || in idm_v6_addr_okay()
375 (IN6_IS_ADDR_V4MAPPED(addr6)) || in idm_v6_addr_okay()
376 (IN6_IS_ADDR_V4COMPAT(addr6)) || in idm_v6_addr_okay()
377 (IN6_IS_ADDR_LINKLOCAL(addr6))) { in idm_v6_addr_okay()
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/
H A Dmpd_probe.c261 struct in6_addr *addr6; in probe() local
263 addr6 = &((struct sockaddr_in6 *)&targ)->sin6_addr; in probe()
266 *addr6 = all_nodes_mcast_v6; in probe()
268 *addr6 = pii->pii_target_next->tg_address; in probe()
270 *addr6 = pii->pii_rtt_target_next->tg_address; in probe()

12