Home
last modified time | relevance | path

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

/packages/modules/Connectivity/Tethering/bpf_progs/
Dbpf_tethering.h73 #define STRUCT_SIZE(name, size) _Static_assert(sizeof(name) == (size), "Incorrect struct size.") macro
90 STRUCT_SIZE(TetherStatsValue, 6 * 8); // 48
115 STRUCT_SIZE(TetherDownstream6Key, 4 + 6 + 2 + 16); // 28
122 STRUCT_SIZE(Tether6Value, 4 + 14 + 2); // 20
135 STRUCT_SIZE(TetherDownstream64Key, 4 + 6 + 2 + 16 + 16 + 2 + 2); // 48
147 STRUCT_SIZE(TetherDownstream64Value, 4 + 14 + 2 + 4 + 4 + 2 + 2 + 8); // 40
163 STRUCT_SIZE(TetherUpstream6Key, 12);
191 STRUCT_SIZE(Tether4Key, 4 + 6 + 2 + 4 + 4 + 2 + 2); // 24
203 STRUCT_SIZE(Tether4Value, 4 + 14 + 2 + 16 + 16 + 2 + 2 + 8); // 64
217 #undef STRUCT_SIZE
/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.java84 final int kMinConsumed = StructNlMsgHdr.STRUCT_SIZE + StructNdMsg.STRUCT_SIZE; in parse()
100 final int length = StructNlMsgHdr.STRUCT_SIZE + StructNdMsg.STRUCT_SIZE; in newGetNeighborsRequest()
182 int spaceRequired = StructNlMsgHdr.STRUCT_SIZE + StructNdMsg.STRUCT_SIZE; in getRequiredSpace()
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()
DConntrackMessage.java50 public static final int STRUCT_SIZE = StructNlMsgHdr.STRUCT_SIZE + StructNfGenMsg.STRUCT_SIZE; field in ConntrackMessage
202 final byte[] bytes = new byte[STRUCT_SIZE + payloadLength]; in newIPv4TimeoutUpdateRequest()
267 final int kMinConsumed = StructNlMsgHdr.STRUCT_SIZE + StructNfGenMsg.STRUCT_SIZE; in parse()
DStructNlMsgHdr.java34 public static final int STRUCT_SIZE = 16; field in StructNlMsgHdr
81 return byteBuffer != null && byteBuffer.remaining() >= STRUCT_SIZE; in hasAvailableSpace()
97 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
DStructNfGenMsg.java35 public static final int STRUCT_SIZE = 2 + Short.BYTES; field in StructNfGenMsg
90 return byteBuffer.remaining() >= STRUCT_SIZE; in hasAvailableSpace()
DStructNdMsg.java32 public static final int STRUCT_SIZE = 12; field in StructNdMsg
102 return byteBuffer != null && byteBuffer.remaining() >= STRUCT_SIZE; in hasAvailableSpace()
DNetlinkConstants.java48 StructNlMsgHdr.STRUCT_SIZE + StructInetDiagMsg.STRUCT_SIZE;
DInetDiagMessage.java86 final byte[] bytes = new byte[StructNlMsgHdr.STRUCT_SIZE + StructInetDiagReqV2.STRUCT_SIZE]; in InetDiagReqV2()
DStructInetDiagSockId.java44 public static final int STRUCT_SIZE = 48; field in StructInetDiagSockId
DNetlinkMessage.java55 payloadLength -= StructNlMsgHdr.STRUCT_SIZE; in parse()
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DNduseroptMessageTest.java107 final String hexBytesWithoutHeader = hexBytes.substring(StructNlMsgHdr.STRUCT_SIZE * 2); in testParseWithinNetlinkMessage()
141 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.java279 buffer.position(TEST_BUFFER_SIZE - StructNlMsgHdr.STRUCT_SIZE); in testEnoughBytesRemainForValidNlMsg()
282 buffer.position(TEST_BUFFER_SIZE - StructNlMsgHdr.STRUCT_SIZE + 1); in testEnoughBytesRemainForValidNlMsg()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadHardwareInterfaceTest.java296 final int expectedLen = StructNlMsgHdr.STRUCT_SIZE + StructNfGenMsg.STRUCT_SIZE; in testSendIpv4NfGenMsg()
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/
DTcpSocketTracker.java244 + StructInetDiagMsg.STRUCT_SIZE - IDIAG_COOKIE_OFFSET in pollSocketsInfo()
391 return bytes.remaining() >= StructNlMsgHdr.STRUCT_SIZE; in enoughBytesRemainForValidNlMsg()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DOffloadHardwareInterface.java329 final int length = StructNlMsgHdr.STRUCT_SIZE + StructNfGenMsg.STRUCT_SIZE; in sendIpv4NfGenMsg()