Searched refs:caddr (Results 1 – 4 of 4) sorted by relevance
/libcore/ojluni/src/main/native/ |
D | net_util_md.c | 763 jbyte caddr[16]; in NET_InetAddressToSockaddr() local 768 memset((char *) caddr, 0, 16); in NET_InetAddressToSockaddr() 775 caddr[10] = 0xff; in NET_InetAddressToSockaddr() 776 caddr[11] = 0xff; in NET_InetAddressToSockaddr() 777 caddr[12] = ((address >> 24) & 0xff); in NET_InetAddressToSockaddr() 778 caddr[13] = ((address >> 16) & 0xff); in NET_InetAddressToSockaddr() 779 caddr[14] = ((address >> 8) & 0xff); in NET_InetAddressToSockaddr() 780 caddr[15] = (address & 0xff); in NET_InetAddressToSockaddr() 783 getInet6Address_ipaddress(env, iaObj, (char *)caddr); in NET_InetAddressToSockaddr() 787 memcpy((void *)&(him6->sin6_addr), caddr, sizeof(struct in6_addr) ); in NET_InetAddressToSockaddr() [all …]
|
D | net_util.h | 161 NET_IsIPv4Mapped(jbyte* caddr); 164 NET_IPv4MappedToIPv4(jbyte* caddr); 172 NET_IsZeroAddr(jbyte* caddr);
|
D | net_util.c | 217 jbyte *caddr = (jbyte *)&(him6->sin6_addr); in NET_SockaddrToInetAddress() local 218 if (NET_IsIPv4Mapped(caddr)) { in NET_SockaddrToInetAddress() 230 address = NET_IPv4MappedToIPv4(caddr); in NET_SockaddrToInetAddress()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | InetAddressTest.java | 62 byte[] caddr = new byte[] { 127, 0, 0, 1 }; in test_getAddress() 65 assertTrue("Incorrect address returned", caddr[i] == addr[i]); in test_getAddress()
|