Home
last modified time | relevance | path

Searched refs:netmaskToPrefixLen (Results 1 – 2 of 2) sorted by relevance

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeConfigPayload.java274 protected static int netmaskToPrefixLen(Inet4Address address) { in netmaskToPrefixLen() method in IkeConfigPayload.ConfigAttribute
506 netmaskToPrefixLen(address); in ConfigAttributeIpv4Netmask()
514 return netmaskToPrefixLen(address); in getPrefixLen()
637 linkAddress = new LinkAddress(address, netmaskToPrefixLen((Inet4Address) netmask)); in ConfigAttributeIpv4Subnet()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeConfigPayloadTest.java593 assertEquals(mIpv4PrefixLens[i], ConfigAttribute.netmaskToPrefixLen(mNetMasks[i])); in testNetmaskToPrefixLen()