Searched refs:nlAttr (Results 1 – 6 of 6) sorted by relevance
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/ |
D | ConntrackMessage.java | 243 StructNlAttr nlAttr = findNextAttrOfType(CTA_STATUS, byteBuffer); in parse() local 245 if (nlAttr != null) { in parse() 246 status = nlAttr.getValueAsBe32(0); in parse() 250 nlAttr = findNextAttrOfType(CTA_TIMEOUT, byteBuffer); in parse() 252 if (nlAttr != null) { in parse() 253 timeoutSec = nlAttr.getValueAsBe32(0); in parse() 257 nlAttr = findNextAttrOfType(makeNestedType(CTA_TUPLE_ORIG), byteBuffer); in parse() 259 if (nlAttr != null) { in parse() 260 tupleOrig = parseTuple(nlAttr.getValueAsByteBuffer()); in parse() 264 nlAttr = findNextAttrOfType(makeNestedType(CTA_TUPLE_REPLY), byteBuffer); in parse() [all …]
|
D | RtNetlinkRouteMessage.java | 202 StructNlAttr nlAttr = StructNlAttr.findNextAttrOfType(RTA_DST, byteBuffer); in parse() local 203 if (nlAttr != null) { in parse() 204 final InetAddress destination = nlAttr.getValueAsInetAddress(); in parse() 220 nlAttr = StructNlAttr.findNextAttrOfType(RTA_SRC, byteBuffer); in parse() 221 if (nlAttr != null) { in parse() 222 final InetAddress source = nlAttr.getValueAsInetAddress(); in parse() 232 nlAttr = StructNlAttr.findNextAttrOfType(RTA_GATEWAY, byteBuffer); in parse() 233 if (nlAttr != null) { in parse() 234 routeMsg.mGateway = nlAttr.getValueAsInetAddress(); in parse() 243 nlAttr = StructNlAttr.findNextAttrOfType(RTA_IIF, byteBuffer); in parse() [all …]
|
D | RtNetlinkNeighborMessage.java | 71 StructNlAttr nlAttr = StructNlAttr.findNextAttrOfType(NDA_DST, byteBuffer); in parse() local 72 if (nlAttr != null) { in parse() 73 neighMsg.mDestination = nlAttr.getValueAsInetAddress(); in parse() 77 nlAttr = StructNlAttr.findNextAttrOfType(NDA_LLADDR, byteBuffer); in parse() 78 if (nlAttr != null) { in parse() 79 neighMsg.mLinkLayerAddr = nlAttr.nla_value; in parse() 83 nlAttr = StructNlAttr.findNextAttrOfType(NDA_PROBES, byteBuffer); in parse() 84 if (nlAttr != null) { in parse() 85 neighMsg.mNumProbes = nlAttr.getValueAsInt(0); in parse() 89 nlAttr = StructNlAttr.findNextAttrOfType(NDA_CACHEINFO, byteBuffer); in parse() [all …]
|
D | RtNetlinkLinkMessage.java | 101 StructNlAttr nlAttr = StructNlAttr.findNextAttrOfType(IFLA_MTU, byteBuffer); in parse() local 102 if (nlAttr != null) { in parse() 103 linkMsg.mMtu = nlAttr.getValueAsInt(0 /* default value */); in parse() 108 nlAttr = StructNlAttr.findNextAttrOfType(IFLA_ADDRESS, byteBuffer); in parse() 109 if (nlAttr != null) { in parse() 110 linkMsg.mHardwareAddress = nlAttr.getValueAsMacAddress(); in parse() 115 nlAttr = StructNlAttr.findNextAttrOfType(IFLA_IFNAME, byteBuffer); in parse() 116 if (nlAttr != null) { in parse() 117 linkMsg.mInterfaceName = nlAttr.getValueAsString(); in parse()
|
D | RtNetlinkAddressMessage.java | 119 StructNlAttr nlAttr = StructNlAttr.findNextAttrOfType(IFA_ADDRESS, byteBuffer); in parse() local 120 if (nlAttr == null) return null; in parse() 121 addrMsg.mIpAddress = nlAttr.getValueAsInetAddress(); in parse() 126 nlAttr = StructNlAttr.findNextAttrOfType(IFA_CACHEINFO, byteBuffer); in parse() 127 if (nlAttr != null) { in parse() 128 addrMsg.mIfacacheInfo = StructIfacacheInfo.parse(nlAttr.getValueAsByteBuffer()); in parse() 136 nlAttr = StructNlAttr.findNextAttrOfType(IFA_FLAGS, byteBuffer); in parse() 137 if (nlAttr == null) return null; in parse() 138 final Integer value = nlAttr.getValueAsInteger(); in parse()
|
D | StructNlAttr.java | 122 final StructNlAttr nlAttr = StructNlAttr.peek(byteBuffer); in findNextAttrOfType() local 123 if (nlAttr == null) { in findNextAttrOfType() 126 if (nlAttr.nla_type == attrType) { in findNextAttrOfType() 129 if (byteBuffer.remaining() < nlAttr.getAlignedLength()) { in findNextAttrOfType() 132 byteBuffer.position(byteBuffer.position() + nlAttr.getAlignedLength()); in findNextAttrOfType()
|