Searched refs:sourceAddress (Results 1 – 7 of 7) sorted by relevance
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | MembershipKeyImpl.java | 72 private final int sourceAddress; field in MembershipKeyImpl.Type4 80 int sourceAddress) in Type4() argument 85 this.sourceAddress = sourceAddress; in Type4() 97 return sourceAddress; in source() 107 private final byte[] sourceAddress; field in MembershipKeyImpl.Type6 115 byte[] sourceAddress) in Type6() argument 120 this.sourceAddress = sourceAddress; in Type6() 132 return sourceAddress; in source() 166 public InetAddress sourceAddress() { in sourceAddress() method in MembershipKeyImpl
|
D | MembershipRegistry.java | 62 if (key.sourceAddress() == null) in checkMembership() 69 if (key.sourceAddress() == null) in checkMembership() 71 if (source.equals(key.sourceAddress())) in checkMembership()
|
D | DatagramChannelImpl.java | 898 byte[] sourceAddress = (source == null) ? null : in innerJoin() 902 int n = Net.join6(fd, groupAddress, index, sourceAddress); in innerJoin() 907 groupAddress, index, sourceAddress); in innerJoin() 917 int sourceAddress = (source == null) ? 0 : Net.inet4AsInt(source); in innerJoin() local 920 int n = Net.join4(fd, groupAddress, targetAddress, sourceAddress); in innerJoin() 925 groupAddress, targetAddress, sourceAddress); in innerJoin() 988 assert key.sourceAddress() == null; in block() 1024 assert key.sourceAddress() == null; in unblock()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | MembershipKeyTest.java | 40 private InetAddress sourceAddress = Inet4Address.LOOPBACK; field in MembershipKeyTest 50 key = client.join(MULTICAST_ADDRESS, NETWORK_INTERFACE, sourceAddress); in init() 128 assertEquals(sourceAddress, key.sourceAddress()); in test_sourceAddressWithJoinWithSource() 133 assertNull(key.sourceAddress()); in test_sourceAddressWithJoinWithoutSource() 163 key.block(sourceAddress); in test_blockWithJoinWithSource() 170 key.block(sourceAddress); in test_blockWithJoinWithoutSource() 202 key.block(sourceAddress); in test_block_Exception() 218 key.block(sourceAddress); in test_unblockWithJoinWithoutSource() 219 key.unblock(sourceAddress); in test_unblockWithJoinWithoutSource() 242 key.unblock(sourceAddress); in test_unblock_Exception() [all …]
|
D | DatagramChannelMulticastTest.java | 285 InetAddress sourceAddress = Inet4Address.getByName("10.0.0." + i); in test_joinAnySource_blockLimit() local 287 key.block(sourceAddress); in test_joinAnySource_blockLimit() 495 assertNull(key.sourceAddress()); in checkMembershipKeyAccessors() 967 InetAddress sourceAddress = Inet4Address.getByAddress(new byte[] { 10, 0, 0, i}); in test_joinSourceSpecific_multipleSourceAddressLimit() local 969 dc.join(GOOD_MULTICAST_IPv4, ipv4NetworkInterface, sourceAddress); in test_joinSourceSpecific_multipleSourceAddressLimit() 1126 private void check_dropSourceSpecific_twice(InetAddress groupAddress, InetAddress sourceAddress, in check_dropSourceSpecific_twice() argument 1133 MembershipKey membershipKey = dc.join(groupAddress, networkInterface, sourceAddress); in check_dropSourceSpecific_twice() 1205 assertSame(UNICAST_IPv4_1, membershipKey.sourceAddress()); in test_drop_keyBehaviorAfterDrop()
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | MembershipKey.java | 176 public abstract InetAddress sourceAddress(); in sourceAddress() method in MembershipKey
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | OsTest.java | 654 byte[] sourceAddress = getIPv6AddressBytesAtOffset(receivedPacket, 8); in test_PacketSocketAddress() 655 assertArrayEquals(Inet6Address.LOOPBACK.getAddress(), sourceAddress); in test_PacketSocketAddress() local
|