Home
last modified time | relevance | path

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

12

/packages/modules/Connectivity/bpf_progs/
Doffload.h75 #define STRUCT_SIZE(name, size) _Static_assert(sizeof(name) == (size), "Incorrect struct size.") macro
88 STRUCT_SIZE(TetherStatsValue, 6 * 8); // 48
103 STRUCT_SIZE(TetherDownstream6Key, 4 + 6 + 2 + 16); // 28
110 STRUCT_SIZE(Tether6Value, 4 + 14 + 2); // 20
121 STRUCT_SIZE(TetherDownstream64Key, 4 + 6 + 2 + 16 + 16 + 2 + 2); // 48
133 STRUCT_SIZE(TetherDownstream64Value, 4 + 14 + 2 + 4 + 4 + 2 + 2 + 8); // 40
141 STRUCT_SIZE(TetherUpstream6Key, 4 + 6 + 6 + 8); // 24
152 STRUCT_SIZE(Tether4Key, 4 + 6 + 2 + 4 + 4 + 2 + 2); // 24
164 STRUCT_SIZE(Tether4Value, 4 + 14 + 2 + 16 + 16 + 2 + 2 + 8); // 64
166 #undef STRUCT_SIZE
Dnetd.h35 #define STRUCT_SIZE(name, size) _Static_assert(sizeof(name) == (size), "Incorrect struct size.") macro
41 STRUCT_SIZE(UidTagValue, 2 * 4); // 8
49 STRUCT_SIZE(StatsKey, 4 * 4); // 16
57 STRUCT_SIZE(StatsValue, 4 * 8); // 32
72 STRUCT_SIZE(IfaceValue, 16);
91 STRUCT_SIZE(PacketTrace, 8+4+4 + 4+4 + 2+2 + 1+1+1+1);
232 STRUCT_SIZE(UidOwnerValue, 2 * 4); // 8
238 STRUCT_SIZE(IngressDiscardKey, 16); // 16
244 STRUCT_SIZE(IngressDiscardValue, 2 * 4); // 8
253 #undef STRUCT_SIZE
Dclatd.h30 #define STRUCT_SIZE(name, size) _Static_assert(sizeof(name) == (size), "Incorrect struct size.") macro
37 STRUCT_SIZE(ClatIngress6Key, 4 + 2 * 16); // 36
45 STRUCT_SIZE(ClatIngress6Value, 4 + 4 + 8 + 8); // 24
51 STRUCT_SIZE(ClatEgress4Key, 4 + 4); // 8
62 STRUCT_SIZE(ClatEgress4Value, 4 + 2 * 16 + 1 + 3 + 8 + 8); // 56
64 #undef STRUCT_SIZE
DdscpPolicy.h25 #define STRUCT_SIZE(name, size) _Static_assert(sizeof(name) == (size), "Incorrect struct size.") macro
63 STRUCT_SIZE(DscpPolicy, 2 * 16 + 4 + 3 * 2 + 3 * 1 + 3); // 48
75 STRUCT_SIZE(RuleEntry, 2 * 16 + 1 * 4 + 2 * 2 + 2 * 1 + 2); // 44
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/xfrm/
DStructXfrmUsersaInfo.java60 StructXfrmSelector.STRUCT_SIZE
61 + StructXfrmId.STRUCT_SIZE
62 + StructXfrmAddressT.STRUCT_SIZE
63 + StructXfrmLifetimeCfg.STRUCT_SIZE
64 + StructXfrmLifetimeCur.STRUCT_SIZE
65 + StructXfrmStats.STRUCT_SIZE;
67 public static final int STRUCT_SIZE = NESTED_STRUCTS_SIZE + 20; field in StructXfrmUsersaInfo
DStructXfrmAddressT.java47 public static final int STRUCT_SIZE = 16; field in StructXfrmAddressT
49 @Field(order = 0, type = Type.ByteArray, arraysize = STRUCT_SIZE)
59 this.address = new byte[STRUCT_SIZE]; in StructXfrmAddressT()
DStructXfrmSelector.java50 public static final int STRUCT_SIZE = 56; field in StructXfrmSelector
119 new byte[StructXfrmAddressT.STRUCT_SIZE], in StructXfrmSelector()
120 new byte[StructXfrmAddressT.STRUCT_SIZE], in StructXfrmSelector()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DRtNetlinkNeighborMessage.java94 final int kMinConsumed = StructNlMsgHdr.STRUCT_SIZE + StructNdMsg.STRUCT_SIZE; in parse()
110 final int length = StructNlMsgHdr.STRUCT_SIZE + StructNdMsg.STRUCT_SIZE; in newGetNeighborsRequest()
192 int spaceRequired = StructNlMsgHdr.STRUCT_SIZE + StructNdMsg.STRUCT_SIZE; in getRequiredSpace()
DStructNlMsgErr.java29 public static final int STRUCT_SIZE = Integer.BYTES + StructNlMsgHdr.STRUCT_SIZE; field in StructNlMsgErr
32 return byteBuffer != null && byteBuffer.remaining() >= STRUCT_SIZE; in hasAvailableSpace()
DStructNlMsgHdr.java33 public static final int STRUCT_SIZE = 16; field in StructNlMsgHdr
94 return byteBuffer != null && byteBuffer.remaining() >= STRUCT_SIZE; in hasAvailableSpace()
114 if (struct.nlmsg_len < STRUCT_SIZE) { in parse()
136 nlmsg_len = StructNlMsgHdr.STRUCT_SIZE + payloadLen; in StructNlMsgHdr()
DStructInetDiagMsg.java45 public static final int STRUCT_SIZE = 4 + StructInetDiagSockId.STRUCT_SIZE + 20; field in StructInetDiagMsg
68 if (byteBuffer.remaining() < STRUCT_SIZE) { in parse()
DRtNetlinkAddressMessage.java227 final int length = StructNlMsgHdr.STRUCT_SIZE + StructIfaddrMsg.STRUCT_SIZE in newRtmDelAddressMessage()
264 int spaceRequired = StructNlMsgHdr.STRUCT_SIZE + StructIfaddrMsg.STRUCT_SIZE; in getRequiredSpace()
270 StructNlAttr.NLA_HEADERLEN + StructIfacacheInfo.STRUCT_SIZE); in getRequiredSpace()
DStructNdOptPref64.java48 public static final int STRUCT_SIZE = 16; field in StructNdOptPref64
140 if (buf.remaining() < STRUCT_SIZE) return null; in parse()
160 ByteBuffer buf = ByteBuffer.allocate(STRUCT_SIZE); in toByteBuffer()
DNduseroptMessage.java36 public static final int STRUCT_SIZE = 16; field in NduseroptMessage
112 int newPosition = start + STRUCT_SIZE + opts_len; in NduseroptMessage()
143 if (buf == null || buf.remaining() < STRUCT_SIZE) return null; in parse()
DConntrackMessage.java50 public static final int STRUCT_SIZE = StructNlMsgHdr.STRUCT_SIZE + StructNfGenMsg.STRUCT_SIZE; field in ConntrackMessage
205 final byte[] bytes = new byte[STRUCT_SIZE + payloadLength]; in newIPv4TimeoutUpdateRequest()
272 final int kMinConsumed = StructNlMsgHdr.STRUCT_SIZE + StructNfGenMsg.STRUCT_SIZE; in parse()
DStructPrefixCacheInfo.java40 public static final int STRUCT_SIZE = 8; field in StructPrefixCacheInfo
61 if (byteBuffer.remaining() < STRUCT_SIZE) { in parse()
DStructNdaCacheInfo.java32 public static final int STRUCT_SIZE = 16; field in StructNdaCacheInfo
35 return byteBuffer != null && byteBuffer.remaining() >= STRUCT_SIZE; in hasAvailableSpace()
DStructIfacacheInfo.java39 public static final int STRUCT_SIZE = 16; field in StructIfacacheInfo
66 if (byteBuffer.remaining() < STRUCT_SIZE) return null; in parse()
DNdOption.java27 public static final int STRUCT_SIZE = 2; field in NdOption
56 if (buf.remaining() < STRUCT_SIZE) return null; in parse()
DStructInetDiagReqV2.java40 public static final int STRUCT_SIZE = 8 + StructInetDiagSockId.STRUCT_SIZE; field in StructInetDiagReqV2
DStructPrefixMsg.java48 public static final int STRUCT_SIZE = 12; field in StructPrefixMsg
78 if (byteBuffer.remaining() < STRUCT_SIZE) { in parse()
DStructIfinfoMsg.java39 public static final int STRUCT_SIZE = 16; field in StructIfinfoMsg
69 if (byteBuffer.remaining() < STRUCT_SIZE) return null; in parse()
DStructIfaddrMsg.java39 public static final int STRUCT_SIZE = 8; field in StructIfaddrMsg
69 if (byteBuffer.remaining() < STRUCT_SIZE) return null; in parse()
DStructNfGenMsg.java34 public static final int STRUCT_SIZE = 2 + Short.BYTES; field in StructNfGenMsg
92 return byteBuffer.remaining() >= STRUCT_SIZE; in hasAvailableSpace()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DStructInetDiagSockIdTest.java143 final ByteBuffer buffer = ByteBuffer.allocate(StructInetDiagSockId.STRUCT_SIZE); in testPackStructInetDiagSockIdWithIpv4()
153 final ByteBuffer buffer = ByteBuffer.allocate(StructInetDiagSockId.STRUCT_SIZE); in testPackStructInetDiagSockIdWithIpv6()
164 final ByteBuffer buffer = ByteBuffer.allocate(StructInetDiagSockId.STRUCT_SIZE); in testPackStructInetDiagSockIdWithIpv4IfIndexCookie()
175 final ByteBuffer buffer = ByteBuffer.allocate(StructInetDiagSockId.STRUCT_SIZE); in testPackStructInetDiagSockIdWithIpv6IfIndexCookie()

12