Home
last modified time | relevance | path

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

/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DNetlinkMessage.java60 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()
DStructNlAttr.java233 int payloadLength = 0; in StructNlAttr() local
234 for (StructNlAttr nla : nested) payloadLength += nla.getAlignedLength(); in StructNlAttr()
235 setValue(new byte[payloadLength]); in StructNlAttr()
DNetlinkUtils.java113 final int payloadLength = messageLength - StructNlMsgHdr.STRUCT_SIZE; in parseNetlinkErrorMessage() local
114 if (payloadLength < 0 || payloadLength > bytes.remaining()) { in parseNetlinkErrorMessage()
DConntrackMessage.java204 final int payloadLength = ctaTupleOrig.getAlignedLength() + ctaTimeout.getAlignedLength(); in newIPv4TimeoutUpdateRequest() local
205 final byte[] bytes = new byte[STRUCT_SIZE + payloadLength]; in newIPv4TimeoutUpdateRequest()
DInetDiagMessage.java179 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/
DIpv6Header.java56 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/
DIkePayloadFactory.java143 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()
DIkeNoncePayload.java87 int payloadLength = GENERIC_HEADER_LENGTH + nonceData.length; in encodeToByteBuffer() local
89 encodePayloadHeaderToByteBuffer(nextPayload, payloadLength, byteBuffer); in encodeToByteBuffer()
DIkePayload.java219 @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/
DIkeAuthPskPayloadTest.java97 int payloadLength = payload.getPayloadLength(); in testBuildOutboundIkeAuthPskPayload() local
99 assertEquals(expectedPayload.length, payloadLength); in testBuildOutboundIkeAuthPskPayload()
102 ByteBuffer byteBuffer = ByteBuffer.allocate(payloadLength); in testBuildOutboundIkeAuthPskPayload()
DIkeSkPayloadTest.java101 int payloadLength = payload.getPayloadLength(); in testEncode() local
102 ByteBuffer buffer = ByteBuffer.allocate(payloadLength); in testEncode()
DIkeSkfPayloadTest.java191 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/
DPingTest.java70 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/
DPacketBuilderTest.java647 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/
DRouterAdvertisementDaemonTest.java171 assertEquals(payLoadLength, ipv6Hdr.payloadLength); in isPacketMatched()