/packages/modules/Connectivity/bpf_progs/ |
D | offload.h | 75 #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
|
D | netd.h | 35 #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
|
D | clatd.h | 30 #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
|
D | dscpPolicy.h | 25 #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/ |
D | StructXfrmUsersaInfo.java | 60 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
|
D | StructXfrmAddressT.java | 47 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()
|
D | StructXfrmSelector.java | 50 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/ |
D | RtNetlinkNeighborMessage.java | 94 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()
|
D | StructNlMsgErr.java | 29 public static final int STRUCT_SIZE = Integer.BYTES + StructNlMsgHdr.STRUCT_SIZE; field in StructNlMsgErr 32 return byteBuffer != null && byteBuffer.remaining() >= STRUCT_SIZE; in hasAvailableSpace()
|
D | StructNlMsgHdr.java | 33 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()
|
D | StructInetDiagMsg.java | 45 public static final int STRUCT_SIZE = 4 + StructInetDiagSockId.STRUCT_SIZE + 20; field in StructInetDiagMsg 68 if (byteBuffer.remaining() < STRUCT_SIZE) { in parse()
|
D | RtNetlinkAddressMessage.java | 227 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()
|
D | StructNdOptPref64.java | 48 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()
|
D | NduseroptMessage.java | 36 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()
|
D | ConntrackMessage.java | 50 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()
|
D | StructPrefixCacheInfo.java | 40 public static final int STRUCT_SIZE = 8; field in StructPrefixCacheInfo 61 if (byteBuffer.remaining() < STRUCT_SIZE) { in parse()
|
D | StructNdaCacheInfo.java | 32 public static final int STRUCT_SIZE = 16; field in StructNdaCacheInfo 35 return byteBuffer != null && byteBuffer.remaining() >= STRUCT_SIZE; in hasAvailableSpace()
|
D | StructIfacacheInfo.java | 39 public static final int STRUCT_SIZE = 16; field in StructIfacacheInfo 66 if (byteBuffer.remaining() < STRUCT_SIZE) return null; in parse()
|
D | NdOption.java | 27 public static final int STRUCT_SIZE = 2; field in NdOption 56 if (buf.remaining() < STRUCT_SIZE) return null; in parse()
|
D | StructInetDiagReqV2.java | 40 public static final int STRUCT_SIZE = 8 + StructInetDiagSockId.STRUCT_SIZE; field in StructInetDiagReqV2
|
D | StructPrefixMsg.java | 48 public static final int STRUCT_SIZE = 12; field in StructPrefixMsg 78 if (byteBuffer.remaining() < STRUCT_SIZE) { in parse()
|
D | StructIfinfoMsg.java | 39 public static final int STRUCT_SIZE = 16; field in StructIfinfoMsg 69 if (byteBuffer.remaining() < STRUCT_SIZE) return null; in parse()
|
D | StructIfaddrMsg.java | 39 public static final int STRUCT_SIZE = 8; field in StructIfaddrMsg 69 if (byteBuffer.remaining() < STRUCT_SIZE) return null; in parse()
|
D | StructNfGenMsg.java | 34 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/ |
D | StructInetDiagSockIdTest.java | 143 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()
|