Searched refs:prefixLen (Results 1 – 4 of 4) sorted by relevance
/packages/modules/NetworkStack/common/moduleutils/src/android/net/ip/ |
D | InterfaceController.java | 172 public boolean addAddress(InetAddress ip, int prefixLen) { in addAddress() argument 174 mNetd.interfaceAddAddress(mIfName, ip.getHostAddress(), prefixLen); in addAddress() 176 logError("failed to add %s/%d: %s", ip, prefixLen, e); in addAddress() 185 public boolean removeAddress(InetAddress ip, int prefixLen) { in removeAddress() argument 187 mNetd.interfaceDelAddress(mIfName, ip.getHostAddress(), prefixLen); in removeAddress() 189 logError("failed to remove %s/%d: %s", ip, prefixLen, e); in removeAddress()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeConfigPayload.java | 280 int prefixLen = 0; in netmaskToPrefixLen() local 282 prefixLen++; in netmaskToPrefixLen() 290 return prefixLen; in netmaskToPrefixLen() 293 protected static byte[] prefixToNetmaskBytes(int prefixLen) { in prefixToNetmaskBytes() argument 294 if (prefixLen > IPV4_PREFIX_LEN_MAX || prefixLen < 0) { in prefixToNetmaskBytes() 298 int netmaskInt = (int) (((long) 0xffffffff) << (IPV4_PREFIX_LEN_MAX - prefixLen)); in prefixToNetmaskBytes() 854 int prefixLen = Byte.toUnsignedInt(inputBuffer.get()); in TunnelModeChildConfigAttrIpv6AddrRangeBase() local 856 linkAddress = new LinkAddress(address, prefixLen); in TunnelModeChildConfigAttrIpv6AddrRangeBase()
|
/packages/modules/IPsec/src/java/android/net/ipsec/ike/ |
D | TunnelModeChildSessionParams.java | 277 public Builder addInternalAddressRequest(@NonNull Inet6Address address, int prefixLen) { in addInternalAddressRequest() argument 283 new ConfigAttributeIpv6Address(new LinkAddress(address, prefixLen))); in addInternalAddressRequest()
|
/packages/modules/NetworkStack/src/android/net/apf/ |
D | ApfFilter.java | 654 int prefixLen = getUint8(mPacket, offset + 2); in rioOptionToString() local 669 sb.append("/").append(prefixLen).append(" "); in rioOptionToString()
|