Home
last modified time | relevance | path

Searched refs:nla_len (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Connectivity/staticlibs/native/tcutils/
Dtcutils.cpp186 .nla_len = sizeof(mRequest.kind), in IngressPoliceFilterBuilder()
193 .nla_len = sizeof(mRequest.opt), in IngressPoliceFilterBuilder()
198 .nla_len = sizeof(mRequest.opt.acts), in IngressPoliceFilterBuilder()
203 .nla_len = sizeof(mRequest.opt.acts.act1), in IngressPoliceFilterBuilder()
208 .nla_len = sizeof(mRequest.opt.acts.act1.kind), in IngressPoliceFilterBuilder()
215 .nla_len = sizeof(mRequest.opt.acts.act1.opt), in IngressPoliceFilterBuilder()
220 .nla_len = sizeof(mRequest.opt.acts.act1.opt.police), in IngressPoliceFilterBuilder()
236 .nla_len = sizeof(mRequest.opt.acts.act1.opt.rtab), in IngressPoliceFilterBuilder()
243 .nla_len = sizeof(mRequest.opt.acts.act1.opt.notexceedact), in IngressPoliceFilterBuilder()
252 .nla_len = sizeof(mRequest.opt.acts.act2), in IngressPoliceFilterBuilder()
[all …]
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DStructNlAttr.java70 struct.nla_len = byteBuffer.getShort(); in peek()
77 if (struct.nla_len < NLA_HEADERLEN) { in peek()
100 int valueLen = ((int) struct.nla_len) & 0xffff; in parse()
137 public short nla_len = (short) NLA_HEADERLEN; field in StructNlAttr
247 return NetlinkConstants.alignedLengthOf(nla_len); in getAlignedLength()
385 if (nla_value.length < (nla_len - NLA_HEADERLEN - 1)) return null; in getValueAsString()
388 final byte[] array = Arrays.copyOf(nla_value, nla_len - NLA_HEADERLEN - 1); in getValueAsString()
404 byteBuffer.putShort(nla_len); in pack()
415 nla_len = (short) (NLA_HEADERLEN + ((nla_value != null) ? nla_value.length : 0)); in setValue()
421 + "nla_len{" + nla_len + "}, " in toString()
DRtNetlinkNeighborMessage.java210 nlAttr.nla_len = (short) (StructNlAttr.NLA_HEADERLEN + nlAttr.nla_value.length); in packNlAttr()
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/
DNetlink.cpp44 const auto len = std::max<size_t>(hdr.nla_len, sizeof(hdr)); in forEachNetlinkAttribute()
71 << "len: 0x" << attr.nla_len << ", type: 0x" << attr.nla_type << "]" << std::dec; in operator <<()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DInetDiagSocketTest.java468 assertEquals(5, inetDiagMsg.nlAttrs.get(0).nla_len); in assertInetDiagMsg2()
473 assertEquals(8, inetDiagMsg.nlAttrs.get(1).nla_len); in assertInetDiagMsg2()
478 assertEquals(4, inetDiagMsg.nlAttrs.get(2).nla_len); in assertInetDiagMsg2()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/xfrm/
DXfrmNetlinkNewSaMessage.java110 parsedLength += attr.nla_len; in parseInternal()