Home
last modified time | relevance | path

Searched refs:linkAddress (Results 1 – 6 of 6) sorted by relevance

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeConfigPayload.java592 public final LinkAddress linkAddress; field in IkeConfigPayload.ConfigAttributeIpv4Subnet
602 this.linkAddress = ipv4LinkAddress; in ConfigAttributeIpv4Subnet()
612 this.linkAddress = null; in ConfigAttributeIpv4Subnet()
621 linkAddress = null; in ConfigAttributeIpv4Subnet()
637 linkAddress = new LinkAddress(address, netmaskToPrefixLen((Inet4Address) netmask)); in ConfigAttributeIpv4Subnet()
651 if (linkAddress == null) { in encodeValueToByteBuffer()
655 byte[] netmaskBytes = prefixToNetmaskBytes(linkAddress.getPrefixLength()); in encodeValueToByteBuffer()
656 buffer.put(linkAddress.getAddress().getAddress()).put(netmaskBytes); in encodeValueToByteBuffer()
661 return linkAddress == null ? 0 : VALUE_LEN; in getValueLength()
824 public final LinkAddress linkAddress; field in IkeConfigPayload.TunnelModeChildConfigAttrIpv6AddrRangeBase
[all …]
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DChildSessionConfiguration.java113 mInternalAddressList.add(((ConfigAttributeIpv6Address) att).linkAddress); in ChildSessionConfiguration()
125 ipv4SubnetAttr.linkAddress.getAddress(), in ChildSessionConfiguration()
126 ipv4SubnetAttr.linkAddress.getPrefixLength())); in ChildSessionConfiguration()
132 ipV6SubnetAttr.linkAddress.getAddress(), in ChildSessionConfiguration()
133 ipV6SubnetAttr.linkAddress.getPrefixLength())); in ChildSessionConfiguration()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeConfigPayloadTest.java226 assertNull(((ConfigAttributeIpv6Address) att).linkAddress); in testDecodeConfigRequest()
400 assertEquals(expectedLinkAddress, attribute.linkAddress); in verifyEncodeIpv6RangeBaseAttribute()
555 assertEquals(IPV4_LINK_ADDRESS, attributeIp4Subnet.linkAddress); in testDecodeIpv4SubnetWithValue()
563 assertNull(attributeIp4Subnet.linkAddress); in testDecodeIpv4SubnetWithoutValue()
587 assertNull(attributeIp4Subnet.linkAddress); in testEncodeIpv4SubnetWithoutValue()
664 assertEquals(IPV6_LINK_ADDRESS, attributeIp6Address.linkAddress); in testDecodeIpv6AddressWithValue()
673 assertNull(attributeIp6Address.linkAddress); in testDecodeIpv6AddressWithoutValue()
717 assertEquals(IPV6_LINK_ADDRESS, attributeIp6Subnet.linkAddress); in testDecodeIpv6SubnetWithValue()
725 assertNull(attributeIp6Subnet.linkAddress); in testDecodeIpv6SubnetWithoutValue()
/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/
DTestableNetworkCallbackTest.kt182 val linkAddress = LinkAddress("fe80::ace:d00d/64") in <lambda>() constant
187 addLinkAddress(linkAddress) in <lambda>()
203 lp.linkAddresses.contains(linkAddress) && in <lambda>()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java251 for (LinkAddress linkAddress : linkProperties.getLinkAddresses()) { in getEthernetIpAddress()
255 sb.append(linkAddress.getAddress().getHostAddress()); in getEthernetIpAddress()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTest.java1519 LinkAddress linkAddress = new LinkAddress(InetAddress.getByAddress(MOCK_IPV4_ADDR), 24); in testApfFilterArp() local
1521 assertTrue(lp.addLinkAddress(linkAddress)); in testApfFilterArp()