/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/ |
D | NetlinkMessage.java | 60 final int payloadLength = messageLength - StructNlMsgHdr.STRUCT_SIZE; in parse() local 61 if (payloadLength < 0 || payloadLength > byteBuffer.remaining()) { in parse() 70 return parseCtlMessage(nlmsghdr, byteBuffer, payloadLength); in parse() 120 @NonNull ByteBuffer byteBuffer, int payloadLength) { in parseCtlMessage() argument 127 byteBuffer.position(byteBuffer.position() + payloadLength); in parseCtlMessage()
|
D | StructNlAttr.java | 233 int payloadLength = 0; in StructNlAttr() local 234 for (StructNlAttr nla : nested) payloadLength += nla.getAlignedLength(); in StructNlAttr() 235 setValue(new byte[payloadLength]); in StructNlAttr()
|
D | NetlinkUtils.java | 113 final int payloadLength = messageLength - StructNlMsgHdr.STRUCT_SIZE; in parseNetlinkErrorMessage() local 114 if (payloadLength < 0 || payloadLength > bytes.remaining()) { in parseNetlinkErrorMessage()
|
D | ConntrackMessage.java | 204 final int payloadLength = ctaTupleOrig.getAlignedLength() + ctaTimeout.getAlignedLength(); in newIPv4TimeoutUpdateRequest() local 205 final byte[] bytes = new byte[STRUCT_SIZE + payloadLength]; in newIPv4TimeoutUpdateRequest()
|
D | InetDiagMessage.java | 179 final int payloadLength = header.nlmsg_len - SOCKDIAG_MSG_HEADER_SIZE; in parse() local 181 while (payload.position() < payloadLength) { in parse()
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/structs/ |
D | Ipv6Header.java | 56 public int payloadLength; field in Ipv6Header 66 public Ipv6Header(final int vtf, final int payloadLength, final byte nextHeader, in Ipv6Header() argument 69 this.payloadLength = payloadLength; in Ipv6Header()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkePayloadFactory.java | 143 int payloadLength = Short.toUnsignedInt(input.getShort()); in getIkePayload() local 144 if (payloadLength <= IkePayload.GENERIC_HEADER_LENGTH) { in getIkePayload() 148 int bodyLength = payloadLength - IkePayload.GENERIC_HEADER_LENGTH; in getIkePayload() 193 int payloadLength = Short.toUnsignedInt(input.getShort()); in getIkeSkPayload() local 196 if (bodyLength < payloadLength) { in getIkeSkPayload() 199 } else if (bodyLength > payloadLength) { in getIkeSkPayload()
|
D | IkeNoncePayload.java | 87 int payloadLength = GENERIC_HEADER_LENGTH + nonceData.length; in encodeToByteBuffer() local 89 encodePayloadHeaderToByteBuffer(nextPayload, payloadLength, byteBuffer); in encodeToByteBuffer()
|
D | IkePayload.java | 219 @PayloadType int nextPayload, int payloadLength, ByteBuffer byteBuffer) { in encodePayloadHeaderToByteBuffer() argument 223 .putShort((short) payloadLength); in encodePayloadHeaderToByteBuffer()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeAuthPskPayloadTest.java | 97 int payloadLength = payload.getPayloadLength(); in testBuildOutboundIkeAuthPskPayload() local 99 assertEquals(expectedPayload.length, payloadLength); in testBuildOutboundIkeAuthPskPayload() 102 ByteBuffer byteBuffer = ByteBuffer.allocate(payloadLength); in testBuildOutboundIkeAuthPskPayload()
|
D | IkeSkPayloadTest.java | 101 int payloadLength = payload.getPayloadLength(); in testEncode() local 102 ByteBuffer buffer = ByteBuffer.allocate(payloadLength); in testEncode()
|
D | IkeSkfPayloadTest.java | 191 int payloadLength = payload.getPayloadLength(); in testEncode() local 192 ByteBuffer buffer = ByteBuffer.allocate(payloadLength); in testEncode()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/ipv6/cts/ |
D | PingTest.java | 70 private byte[] pingPacket(int payloadLength) { in pingPacket() argument 71 byte[] packet = new byte[payloadLength + ICMP_HEADER_SIZE]; in pingPacket()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | PacketBuilderTest.java | 647 assertEquals(TCP_HEADER_MIN_LEN + dataLength, ipv6Header.payloadLength); in checkIpv6Header() 650 assertEquals(UDP_HEADER_LEN + dataLength, ipv6Header.payloadLength); in checkIpv6Header()
|
/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/ |
D | RouterAdvertisementDaemonTest.java | 171 assertEquals(payLoadLength, ipv6Hdr.payloadLength); in isPacketMatched()
|