Home
last modified time | relevance | path

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

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeConfigPayload.java277 int netmaskInt = ByteBuffer.wrap(bytes).getInt(); in netmaskToPrefixLen() local
281 while ((netmaskInt & leftmostBitMask) == leftmostBitMask) { in netmaskToPrefixLen()
283 netmaskInt <<= 1; in netmaskToPrefixLen()
286 if (netmaskInt != 0) { in netmaskToPrefixLen()
298 int netmaskInt = (int) (((long) 0xffffffff) << (IPV4_PREFIX_LEN_MAX - prefixLen)); in prefixToNetmaskBytes() local
302 buffer.putInt(netmaskInt); in prefixToNetmaskBytes()