Home
last modified time | relevance | path

Searched refs:NLA_HEADERLEN (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DStructNlAttr.java42 public static final int NLA_HEADERLEN = 4; field in StructNlAttr
61 if (byteBuffer == null || byteBuffer.remaining() < NLA_HEADERLEN) { in peek()
77 if (struct.nla_len < NLA_HEADERLEN) { in peek()
98 byteBuffer.position(baseOffset + NLA_HEADERLEN); in parse()
101 valueLen -= NLA_HEADERLEN; in parse()
137 public short nla_len = (short) NLA_HEADERLEN;
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()
415 nla_len = (short) (NLA_HEADERLEN + ((nla_value != null) ? nla_value.length : 0)); in setValue()
DRtNetlinkAddressMessage.java226 StructNlAttr.NLA_HEADERLEN + ip.getAddress().length); in newRtmDelAddressMessage()
267 StructNlAttr.NLA_HEADERLEN + mIpAddress.getAddress().length); in getRequiredSpace()
270 StructNlAttr.NLA_HEADERLEN + StructIfacacheInfo.STRUCT_SIZE); in getRequiredSpace()
272 spaceRequired += StructNlAttr.NLA_HEADERLEN + 4; in getRequiredSpace()
276 StructNlAttr.NLA_HEADERLEN + mIpAddress.getAddress().length); in getRequiredSpace()
279 StructNlAttr.NLA_HEADERLEN + mIpAddress.getAddress().length); in getRequiredSpace()
DRtNetlinkNeighborMessage.java195 StructNlAttr.NLA_HEADERLEN + mDestination.getAddress().length); in getRequiredSpace()
199 StructNlAttr.NLA_HEADERLEN + mLinkLayerAddr.length); in getRequiredSpace()
210 nlAttr.nla_len = (short) (StructNlAttr.NLA_HEADERLEN + nlAttr.nla_value.length); in packNlAttr()