Home
last modified time | relevance | path

Searched refs:sll_addr (Results 1 – 3 of 3) sorted by relevance

/libcore/luni/src/main/java/android/system/
DPacketSocketAddress.java72 public final byte[] sll_addr; field in PacketSocketAddress
80 byte[] sll_addr) { in PacketSocketAddress() argument
85 this.sll_addr = sll_addr; in PacketSocketAddress()
101 public PacketSocketAddress(int sll_protocol, int sll_ifindex, byte[] sll_addr) { in PacketSocketAddress() argument
106 this.sll_addr = sll_addr; in PacketSocketAddress()
120 this.sll_addr = null; in PacketSocketAddress()
129 public PacketSocketAddress(int sll_ifindex, byte[] sll_addr) { in PacketSocketAddress() argument
134 this.sll_addr = sll_addr; in PacketSocketAddress()
/libcore/luni/src/main/native/
Dlibcore_io_Linux.cpp443 reinterpret_cast<const jbyte*>(sll->sll_addr)); in makeSocketAddress()
750 memset(&sll->sll_addr, 0, sizeof(sll->sll_addr)); in javaPacketSocketAddressToSockaddr()
753 if ((size_t) len > sizeof(sll->sll_addr)) { in javaPacketSocketAddressToSockaddr()
754 len = sizeof(sll->sll_addr); in javaPacketSocketAddressToSockaddr()
757 env->GetByteArrayRegion(sllAddr, 0, len, (jbyte*) sll->sll_addr); in javaPacketSocketAddressToSockaddr()
1712 if (sll->sll_addr[i] != 0) { in Linux_getifaddrs()
1725 reinterpret_cast<const jbyte*>(sll->sll_addr)); in Linux_getifaddrs()
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java661 assertNotNull(bound.sll_addr); in test_PacketSocketAddress()
662 assertEquals(6, bound.sll_addr.length); in test_PacketSocketAddress()
664 assertEquals(0, bound.sll_addr[i]); in test_PacketSocketAddress()