Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
DStructInetDiagMsg.java42 public static final int STRUCT_SIZE = 4 + StructInetDiagSockId.STRUCT_SIZE + 20; field in StructInetDiagMsg
43 private static final int IDIAG_UID_OFFSET = StructNlMsgHdr.STRUCT_SIZE + 4 +
44 StructInetDiagSockId.STRUCT_SIZE + 12;
DRtNetlinkNeighborMessage.java101 final int kMinConsumed = StructNlMsgHdr.STRUCT_SIZE + StructNdMsg.STRUCT_SIZE; in parse()
117 final int length = StructNlMsgHdr.STRUCT_SIZE + StructNdMsg.STRUCT_SIZE; in newGetNeighborsRequest()
199 int spaceRequired = StructNlMsgHdr.STRUCT_SIZE + StructNdMsg.STRUCT_SIZE; in getRequiredSpace()
DConntrackMessage.java40 public static final int STRUCT_SIZE = StructNlMsgHdr.STRUCT_SIZE + StructNfGenMsg.STRUCT_SIZE; field in ConntrackMessage
81 final byte[] bytes = new byte[STRUCT_SIZE + payloadLength]; in newIPv4TimeoutUpdateRequest()
DNduseroptMessage.java34 public static final int STRUCT_SIZE = 16; field in NduseroptMessage
85 buf.limit(start + STRUCT_SIZE + opts_len); in NduseroptMessage()
93 int newPosition = start + STRUCT_SIZE + opts_len; in NduseroptMessage()
121 if (buf == null || buf.remaining() < STRUCT_SIZE) return null; in parse()
DStructNlMsgErr.java30 public static final int STRUCT_SIZE = Integer.BYTES + StructNlMsgHdr.STRUCT_SIZE; field in StructNlMsgErr
33 return byteBuffer != null && byteBuffer.remaining() >= STRUCT_SIZE; in hasAvailableSpace()
DStructNlMsgHdr.java31 public static final int STRUCT_SIZE = 16; field in StructNlMsgHdr
77 return byteBuffer != null && byteBuffer.remaining() >= STRUCT_SIZE; in hasAvailableSpace()
93 if (struct.nlmsg_len < STRUCT_SIZE) { in parse()
DStructNdOptPref64.java47 public static final int STRUCT_SIZE = 16; field in StructNdOptPref64
138 if (buf == null || buf.remaining() < STRUCT_SIZE) return null; in parse()
158 ByteBuffer buf = ByteBuffer.allocate(STRUCT_SIZE); in toByteBuffer()
DNdOption.java25 public static final int STRUCT_SIZE = 2; field in NdOption
54 if (buf == null || buf.remaining() < STRUCT_SIZE) return null; in parse()
DStructNdaCacheInfo.java34 public static final int STRUCT_SIZE = 16; field in StructNdaCacheInfo
37 return byteBuffer != null && byteBuffer.remaining() >= STRUCT_SIZE; in hasAvailableSpace()
DStructInetDiagReqV2.java41 public static final int STRUCT_SIZE = 8 + StructInetDiagSockId.STRUCT_SIZE; field in StructInetDiagReqV2
DNetlinkConstants.java45 StructNlMsgHdr.STRUCT_SIZE + StructInetDiagMsg.STRUCT_SIZE;
DStructNdMsg.java32 public static final int STRUCT_SIZE = 12; field in StructNdMsg
102 return byteBuffer != null && byteBuffer.remaining() >= STRUCT_SIZE; in hasAvailableSpace()
DInetDiagMessage.java86 final byte[] bytes = new byte[StructNlMsgHdr.STRUCT_SIZE + StructInetDiagReqV2.STRUCT_SIZE]; in InetDiagReqV2()
DStructNfGenMsg.java30 public static final int STRUCT_SIZE = 2 + Short.BYTES; field in StructNfGenMsg
DStructInetDiagSockId.java44 public static final int STRUCT_SIZE = 48; field in StructInetDiagSockId
DNetlinkMessage.java46 payloadLength -= StructNlMsgHdr.STRUCT_SIZE; in parse()
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DNduseroptMessageTest.java106 final String hexBytesWithoutHeader = hexBytes.substring(StructNlMsgHdr.STRUCT_SIZE * 2); in testParseWithinNetlinkMessage()
140 final int optionStart = NduseroptMessage.STRUCT_SIZE; in testUnknownOption()
DNetlinkSocketTest.java74 assertTrue(StructNlMsgHdr.STRUCT_SIZE <= response.limit()); in testBasicWorkingGetNeighborsQuery()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/netlink/
DTcpSocketTrackerTest.java280 buffer.position(TEST_BUFFER_SIZE - StructNlMsgHdr.STRUCT_SIZE); in testEnoughBytesRemainForValidNlMsg()
283 buffer.position(TEST_BUFFER_SIZE - StructNlMsgHdr.STRUCT_SIZE + 1); in testEnoughBytesRemainForValidNlMsg()
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/
DTcpSocketTracker.java243 + StructInetDiagMsg.STRUCT_SIZE - IDIAG_COOKIE_OFFSET in pollSocketsInfo()
390 return bytes.remaining() >= StructNlMsgHdr.STRUCT_SIZE; in enoughBytesRemainForValidNlMsg()