Home
last modified time | relevance | path

Searched refs:StructNlAttr (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DStructNlAttrTest.java43 final StructNlAttr attr1 = new StructNlAttr(IFLA_ADDRESS, TEST_MAC_ADDRESS); in testGetValueAsMacAddress()
52 final StructNlAttr attr2 = new StructNlAttr(IFLA_ADDRESS, array); in testGetValueAsMacAddress()
59 final StructNlAttr attr1 = new StructNlAttr(IFLA_IFNAME, TEST_INTERFACE_NAME); in testGetValueAsString()
66 final StructNlAttr attr2 = new StructNlAttr(IFLA_IFNAME, array); in testGetValueAsString()
73 final StructNlAttr attr1 = new StructNlAttr(IFA_FLAGS, TEST_ADDR_FLAGS); in testGetValueAsInteger()
81 final StructNlAttr attr2 = new StructNlAttr(IFA_FLAGS, malformed_int); in testGetValueAsInteger()
89 final StructNlAttr attr3 = new StructNlAttr(IFA_FLAGS, null_int); in testGetValueAsInteger()
100 final StructNlAttr attr = new StructNlAttr(IFA_FLAGS, input); in testGetValueAsLong()
111 final StructNlAttr attr = new StructNlAttr(IFA_FLAGS, input); in testGetValueAsLong_malformed()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DStructNlAttr.java40 public class StructNlAttr { class
60 public static StructNlAttr peek(ByteBuffer byteBuffer) { in peek()
66 final StructNlAttr struct = new StructNlAttr(); in peek()
91 public static StructNlAttr parse(ByteBuffer byteBuffer) { in parse()
92 final StructNlAttr struct = peek(byteBuffer); in parse()
119 public static StructNlAttr findNextAttrOfType(short attrType, in findNextAttrOfType()
122 final StructNlAttr nlAttr = StructNlAttr.peek(byteBuffer); in findNextAttrOfType()
127 return StructNlAttr.parse(byteBuffer); in findNextAttrOfType()
141 public StructNlAttr() {} in StructNlAttr() method in StructNlAttr
143 public StructNlAttr(short type, byte value) { in StructNlAttr() method in StructNlAttr
[all …]
DRtNetlinkRouteMessage.java202 StructNlAttr nlAttr = StructNlAttr.findNextAttrOfType(RTA_DST, byteBuffer); in parse()
220 nlAttr = StructNlAttr.findNextAttrOfType(RTA_SRC, byteBuffer); in parse()
232 nlAttr = StructNlAttr.findNextAttrOfType(RTA_GATEWAY, byteBuffer); in parse()
243 nlAttr = StructNlAttr.findNextAttrOfType(RTA_IIF, byteBuffer); in parse()
254 nlAttr = StructNlAttr.findNextAttrOfType(RTA_OIF, byteBuffer); in parse()
265 nlAttr = StructNlAttr.findNextAttrOfType(RTA_CACHEINFO, byteBuffer); in parse()
272 nlAttr = StructNlAttr.findNextAttrOfType(RTA_EXPIRES, byteBuffer); in parse()
292 final StructNlAttr source = new StructNlAttr(RTA_SRC, mSource.getAddress()); in pack()
297 final StructNlAttr destination = new StructNlAttr(RTA_DST, mDestination.getAddress()); in pack()
302 final StructNlAttr gateway = new StructNlAttr(RTA_GATEWAY, mGateway.getAddress()); in pack()
[all …]
DRtNetlinkAddressMessage.java119 StructNlAttr nlAttr = StructNlAttr.findNextAttrOfType(IFA_ADDRESS, byteBuffer); in parse()
126 nlAttr = StructNlAttr.findNextAttrOfType(IFA_CACHEINFO, byteBuffer); in parse()
136 nlAttr = StructNlAttr.findNextAttrOfType(IFA_FLAGS, byteBuffer); in parse()
153 final StructNlAttr address = new StructNlAttr(IFA_ADDRESS, mIpAddress); in pack()
157 final StructNlAttr cacheInfo = new StructNlAttr(IFA_CACHEINFO, in pack()
164 final StructNlAttr flags = new StructNlAttr(IFA_FLAGS, mFlags); in pack()
176 final StructNlAttr localAddress = new StructNlAttr(IFA_LOCAL, mIpAddress); in pack()
181 final StructNlAttr broadcastAddress = new StructNlAttr(IFA_BROADCAST, broadcast); in pack()
226 StructNlAttr.NLA_HEADERLEN + ip.getAddress().length); in newRtmDelAddressMessage()
252 final StructNlAttr address = new StructNlAttr(IFA_ADDRESS, ip); in newRtmDelAddressMessage()
[all …]
DRtNetlinkLinkMessage.java101 StructNlAttr nlAttr = StructNlAttr.findNextAttrOfType(IFLA_MTU, byteBuffer); in parse()
108 nlAttr = StructNlAttr.findNextAttrOfType(IFLA_ADDRESS, byteBuffer); in parse()
115 nlAttr = StructNlAttr.findNextAttrOfType(IFLA_IFNAME, byteBuffer); in parse()
132 final StructNlAttr mtu = new StructNlAttr(IFLA_MTU, mMtu); in pack()
136 final StructNlAttr hardwareAddress = new StructNlAttr(IFLA_ADDRESS, mHardwareAddress); in pack()
140 final StructNlAttr ifname = new StructNlAttr(IFLA_IFNAME, mInterfaceName); in pack()
DConntrackMessage.java22 import static com.android.net.module.util.netlink.StructNlAttr.findNextAttrOfType;
23 import static com.android.net.module.util.netlink.StructNlAttr.makeNestedType;
193 final StructNlAttr ctaTupleOrig = new StructNlAttr(CTA_TUPLE_ORIG, in newIPv4TimeoutUpdateRequest()
194 new StructNlAttr(CTA_TUPLE_IP, in newIPv4TimeoutUpdateRequest()
195 new StructNlAttr(CTA_IP_V4_SRC, src), in newIPv4TimeoutUpdateRequest()
196 new StructNlAttr(CTA_IP_V4_DST, dst)), in newIPv4TimeoutUpdateRequest()
197 new StructNlAttr(CTA_TUPLE_PROTO, in newIPv4TimeoutUpdateRequest()
198 new StructNlAttr(CTA_PROTO_NUM, (byte) proto), in newIPv4TimeoutUpdateRequest()
199 new StructNlAttr(CTA_PROTO_SRC_PORT, (short) sport, BIG_ENDIAN), in newIPv4TimeoutUpdateRequest()
200 new StructNlAttr(CTA_PROTO_DST_PORT, (short) dport, BIG_ENDIAN))); in newIPv4TimeoutUpdateRequest()
[all …]
DRtNetlinkNeighborMessage.java71 StructNlAttr nlAttr = StructNlAttr.findNextAttrOfType(NDA_DST, byteBuffer); in parse()
77 nlAttr = StructNlAttr.findNextAttrOfType(NDA_LLADDR, byteBuffer); in parse()
83 nlAttr = StructNlAttr.findNextAttrOfType(NDA_PROBES, byteBuffer); in parse()
89 nlAttr = StructNlAttr.findNextAttrOfType(NDA_CACHEINFO, byteBuffer); in parse()
195 StructNlAttr.NLA_HEADERLEN + mDestination.getAddress().length); in getRequiredSpace()
199 StructNlAttr.NLA_HEADERLEN + mLinkLayerAddr.length); in getRequiredSpace()
207 final StructNlAttr nlAttr = new StructNlAttr(); in packNlAttr()
210 nlAttr.nla_len = (short) (StructNlAttr.NLA_HEADERLEN + nlAttr.nla_value.length); in packNlAttr()
DNduseroptMessage.java120 StructNlAttr nla = StructNlAttr.parse(buf); in NduseroptMessage()
DInetDiagMessage.java161 public List<StructNlAttr> nlAttrs = new ArrayList<>();
182 final StructNlAttr attr = StructNlAttr.parse(payload); in parse()
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DTunInterfaceController.java47 import com.android.net.module.util.netlink.StructNlAttr;
392 StructNlAttr addrGenMode = in setAddrGenModeToNone()
393 new StructNlAttr(IFLA_INET6_ADDR_GEN_MODE, (byte) IN6_ADDR_GEN_MODE_NONE); in setAddrGenModeToNone()
394 StructNlAttr afInet6 = new StructNlAttr((short) AF_INET6, addrGenMode); in setAddrGenModeToNone()
395 StructNlAttr afSpec = new StructNlAttr(IFLA_AF_SPEC, afInet6); in setAddrGenModeToNone()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/xfrm/
DXfrmNetlinkNewSaMessage.java27 import com.android.net.module.util.netlink.StructNlAttr;
96 final StructNlAttr attr = StructNlAttr.parse(byteBuffer); in parseInternal()
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/
DTcpSocketTracker.java77 import com.android.net.module.util.netlink.StructNlAttr;
445 final StructNlAttr nlattr = StructNlAttr.parse(bytes); in parseSockInfo()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DAutomaticOnOffKeepaliveTracker.java65 import com.android.net.module.util.netlink.StructNlAttr;
836 for (StructNlAttr attr : diagMsg.nlAttrs) { in readSocketDataAndReturnMark()