/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/ |
D | StructInetDiagMsg.java | 42 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;
|
D | RtNetlinkNeighborMessage.java | 101 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()
|
D | ConntrackMessage.java | 40 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()
|
D | NduseroptMessage.java | 34 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()
|
D | StructNlMsgErr.java | 30 public static final int STRUCT_SIZE = Integer.BYTES + StructNlMsgHdr.STRUCT_SIZE; field in StructNlMsgErr 33 return byteBuffer != null && byteBuffer.remaining() >= STRUCT_SIZE; in hasAvailableSpace()
|
D | StructNlMsgHdr.java | 31 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()
|
D | StructNdOptPref64.java | 47 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()
|
D | NdOption.java | 25 public static final int STRUCT_SIZE = 2; field in NdOption 54 if (buf == null || buf.remaining() < STRUCT_SIZE) return null; in parse()
|
D | StructNdaCacheInfo.java | 34 public static final int STRUCT_SIZE = 16; field in StructNdaCacheInfo 37 return byteBuffer != null && byteBuffer.remaining() >= STRUCT_SIZE; in hasAvailableSpace()
|
D | StructInetDiagReqV2.java | 41 public static final int STRUCT_SIZE = 8 + StructInetDiagSockId.STRUCT_SIZE; field in StructInetDiagReqV2
|
D | NetlinkConstants.java | 45 StructNlMsgHdr.STRUCT_SIZE + StructInetDiagMsg.STRUCT_SIZE;
|
D | StructNdMsg.java | 32 public static final int STRUCT_SIZE = 12; field in StructNdMsg 102 return byteBuffer != null && byteBuffer.remaining() >= STRUCT_SIZE; in hasAvailableSpace()
|
D | InetDiagMessage.java | 86 final byte[] bytes = new byte[StructNlMsgHdr.STRUCT_SIZE + StructInetDiagReqV2.STRUCT_SIZE]; in InetDiagReqV2()
|
D | StructNfGenMsg.java | 30 public static final int STRUCT_SIZE = 2 + Short.BYTES; field in StructNfGenMsg
|
D | StructInetDiagSockId.java | 44 public static final int STRUCT_SIZE = 48; field in StructInetDiagSockId
|
D | NetlinkMessage.java | 46 payloadLength -= StructNlMsgHdr.STRUCT_SIZE; in parse()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/ |
D | NduseroptMessageTest.java | 106 final String hexBytesWithoutHeader = hexBytes.substring(StructNlMsgHdr.STRUCT_SIZE * 2); in testParseWithinNetlinkMessage() 140 final int optionStart = NduseroptMessage.STRUCT_SIZE; in testUnknownOption()
|
D | NetlinkSocketTest.java | 74 assertTrue(StructNlMsgHdr.STRUCT_SIZE <= response.limit()); in testBasicWorkingGetNeighborsQuery()
|
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/netlink/ |
D | TcpSocketTrackerTest.java | 280 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/ |
D | TcpSocketTracker.java | 243 + StructInetDiagMsg.STRUCT_SIZE - IDIAG_COOKIE_OFFSET in pollSocketsInfo() 390 return bytes.remaining() >= StructNlMsgHdr.STRUCT_SIZE; in enoughBytesRemainForValidNlMsg()
|