/titanic_44/usr/src/common/smbsrv/ |
H A D | smb_inet.c | 54 smb_inet_equal(smb_inaddr_t *ip1, smb_inaddr_t *ip2) in smb_inet_equal() argument 57 (ip2->a_family == AF_INET) && in smb_inet_equal() 58 (ip1->a_ipv4 == ip2->a_ipv4)) in smb_inet_equal() 62 (ip2->a_family == AF_INET6) && in smb_inet_equal() 63 (!memcmp(&ip1->a_ipv6, &ip2->a_ipv6, sizeof (in6_addr_t)))) in smb_inet_equal() 70 smb_inet_same_subnet(smb_inaddr_t *ip1, smb_inaddr_t *ip2, uint32_t v4mask) in smb_inet_same_subnet() argument 73 (ip2->a_family == AF_INET) && in smb_inet_same_subnet() 74 ((ip1->a_ipv4 & v4mask) == (ip2->a_ipv4 & v4mask))) in smb_inet_same_subnet() 78 (ip2->a_family == AF_INET6) && in smb_inet_same_subnet() 79 (!memcmp(&ip1->a_ipv6, &ip2->a_ipv6, sizeof (in6_addr_t)))) in smb_inet_same_subnet()
|
/titanic_44/usr/src/lib/libilb/common/ |
H A D | ilb_subr.c | 116 i_cmp_addr_impl(void *ip1, void *ip2, ip_addr_type_t atype, int64_t *diff) in i_cmp_addr_impl() argument 128 IN6_V4MAPPED_TO_IPADDR((struct in6_addr *)ip2, i2); in i_cmp_addr_impl() 134 a6_2 = (struct in6_addr *)ip2; in i_cmp_addr_impl() 142 a2 = &((ilb_ip_addr_t *)ip2)->ia_v4; in i_cmp_addr_impl() 148 a6_2 = &((ilb_ip_addr_t *)ip2)->ia_v6; in i_cmp_addr_impl() 240 ilb_cmp_in6_addr(struct in6_addr *ip1, struct in6_addr *ip2, int64_t *diff) in ilb_cmp_in6_addr() argument 244 res = i_cmp_addr_impl(ip1, ip2, internal, diff); in ilb_cmp_in6_addr() 249 ilb_cmp_ipaddr(ilb_ip_addr_t *ip1, ilb_ip_addr_t *ip2, int64_t *diff) in ilb_cmp_ipaddr() argument 253 res = i_cmp_addr_impl(ip1, ip2, external, diff); in ilb_cmp_ipaddr()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ |
H A D | ilbadm_subr.c | 228 ilb_ip_addr_t *ip1, ilb_ip_addr_t *ip2) in i_expand_ipv4range() argument 238 while (ilb_cmp_ipaddr(&new_ip, ip2, NULL) < 1) { in i_expand_ipv4range() 275 ilb_ip_addr_t *ip1, ilb_ip_addr_t *ip2) in i_expand_ipv6range() argument 285 while (ilb_cmp_ipaddr(&new_ip, ip2, NULL) < 1) { in i_expand_ipv6range() 304 ilb_ip_addr_t *ip1, ilb_ip_addr_t *ip2) in i_expand_iprange() argument 309 if (ip2->ia_af == 0) in i_expand_iprange() 312 if (ip1->ia_af != ip2->ia_af) { in i_expand_iprange() 318 if ((cmp = ilb_cmp_ipaddr(ip1, ip2, &delta)) == 0) in i_expand_iprange() 332 return (i_expand_ipv4range(sg, sr, ip1, ip2)); in i_expand_iprange() 334 return (i_expand_ipv6range(sg, sr, ip1, ip2)); in i_expand_iprange() [all …]
|
H A D | ilbadm_rules.c | 343 ilb_ip_addr_t *ip = NULL, *ip2 = NULL; in of_rl_ip() local 351 ip2 = &rd->r_nat_src_end; in of_rl_ip() 361 if (ip2 != NULL && (ip2->ia_af == AF_INET || ip2->ia_af == AF_INET6) && in of_rl_ip() 367 ip2str(ip2, buf, bufsize, V6_ADDRONLY); in of_rl_ip()
|
/titanic_44/usr/src/uts/common/io/mac/ |
H A D | mac_protect.c | 748 const dhcpv6_addr_t *ip1 = arg1, *ip2 = arg2; in compare_dhcpv6_ip() local 751 ret = memcmp(&ip1->da_addr, &ip2->da_addr, sizeof (in6_addr_t)); in compare_dhcpv6_ip() 786 const slaac_addr_t *ip1 = arg1, *ip2 = arg2; in compare_slaac_ip() local 789 ret = memcmp(&ip1->sla_addr, &ip2->sla_addr, sizeof (in6_addr_t)); in compare_slaac_ip()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | DNSCommon.c | 520 mDNSexport mDNSBool mDNSSameAddress(const mDNSAddr *ip1, const mDNSAddr *ip2) in mDNSSameAddress() argument 522 if (ip1->type == ip2->type) in mDNSSameAddress() 527 case mDNSAddrType_IPv4 : return(mDNSBool)(mDNSSameIPv4Address(ip1->ip.v4, ip2->ip.v4)); in mDNSSameAddress() 528 case mDNSAddrType_IPv6 : return(mDNSBool)(mDNSSameIPv6Address(ip1->ip.v6, ip2->ip.v6)); in mDNSSameAddress()
|
H A D | mDNSEmbeddedAPI.h | 2538 extern mDNSBool mDNSSameAddress(const mDNSAddr *ip1, const mDNSAddr *ip2);
|