/packages/modules/Connectivity/Tethering/bpf_progs/ |
D | bpf_tethering.h | 73 #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/ |
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 | 84 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()
|
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 | ConntrackMessage.java | 50 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()
|
D | StructNlMsgHdr.java | 34 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()
|
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 | StructNfGenMsg.java | 35 public static final int STRUCT_SIZE = 2 + Short.BYTES; field in StructNfGenMsg 90 return byteBuffer.remaining() >= STRUCT_SIZE; in hasAvailableSpace()
|
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 | NetlinkConstants.java | 48 StructNlMsgHdr.STRUCT_SIZE + StructInetDiagMsg.STRUCT_SIZE;
|
D | InetDiagMessage.java | 86 final byte[] bytes = new byte[StructNlMsgHdr.STRUCT_SIZE + StructInetDiagReqV2.STRUCT_SIZE]; in InetDiagReqV2()
|
D | StructInetDiagSockId.java | 44 public static final int STRUCT_SIZE = 48; field in StructInetDiagSockId
|
D | NetlinkMessage.java | 55 payloadLength -= StructNlMsgHdr.STRUCT_SIZE; in parse()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/ |
D | NduseroptMessageTest.java | 107 final String hexBytesWithoutHeader = hexBytes.substring(StructNlMsgHdr.STRUCT_SIZE * 2); in testParseWithinNetlinkMessage() 141 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 | 279 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/ |
D | OffloadHardwareInterfaceTest.java | 296 final int expectedLen = StructNlMsgHdr.STRUCT_SIZE + StructNfGenMsg.STRUCT_SIZE; in testSendIpv4NfGenMsg()
|
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/ |
D | TcpSocketTracker.java | 244 + 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/ |
D | OffloadHardwareInterface.java | 329 final int length = StructNlMsgHdr.STRUCT_SIZE + StructNfGenMsg.STRUCT_SIZE; in sendIpv4NfGenMsg()
|