Home
last modified time | relevance | path

Searched refs:StructNlMsgHdr (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/services/net/java/android/net/netlink/
DRtNetlinkNeighborMessage.java19 import static android.net.netlink.StructNlMsgHdr.NLM_F_ACK;
20 import static android.net.netlink.StructNlMsgHdr.NLM_F_DUMP;
21 import static android.net.netlink.StructNlMsgHdr.NLM_F_REPLACE;
22 import static android.net.netlink.StructNlMsgHdr.NLM_F_REQUEST;
27 import android.net.netlink.StructNlMsgHdr;
74 public static RtNetlinkNeighborMessage parse(StructNlMsgHdr header, ByteBuffer byteBuffer) { in parse()
107 final int kMinConsumed = StructNlMsgHdr.STRUCT_SIZE + StructNdMsg.STRUCT_SIZE; in parse()
123 final int length = StructNlMsgHdr.STRUCT_SIZE + StructNdMsg.STRUCT_SIZE; in newGetNeighborsRequest()
128 final StructNlMsgHdr nlmsghdr = new StructNlMsgHdr(); in newGetNeighborsRequest()
147 final StructNlMsgHdr nlmsghdr = new StructNlMsgHdr(); in newNewNeighborMessage()
[all …]
DNetlinkMessage.java23 import android.net.netlink.StructNlMsgHdr;
47 final StructNlMsgHdr nlmsghdr = StructNlMsgHdr.parse(byteBuffer); in parse()
53 payloadLength -= StructNlMsgHdr.STRUCT_SIZE; in parse()
85 protected StructNlMsgHdr mHeader;
87 public NetlinkMessage(StructNlMsgHdr nlmsghdr) { in NetlinkMessage()
91 public StructNlMsgHdr getHeader() { in getHeader()
DStructNlMsgErr.java20 import android.net.netlink.StructNlMsgHdr;
33 public static final int STRUCT_SIZE = Integer.BYTES + StructNlMsgHdr.STRUCT_SIZE;
47 struct.msg = StructNlMsgHdr.parse(byteBuffer); in parse()
52 public StructNlMsgHdr msg;
DInetDiagMessage.java22 import static android.net.netlink.StructNlMsgHdr.NLM_F_DUMP;
23 import static android.net.netlink.StructNlMsgHdr.NLM_F_REQUEST;
60 final byte[] bytes = new byte[StructNlMsgHdr.STRUCT_SIZE + StructInetDiagReqV2.STRUCT_SIZE]; in InetDiagReqV2()
64 final StructNlMsgHdr nlMsgHdr = new StructNlMsgHdr(); in InetDiagReqV2()
78 private InetDiagMessage(StructNlMsgHdr header) { in InetDiagMessage()
83 public static InetDiagMessage parse(StructNlMsgHdr header, ByteBuffer byteBuffer) { in parse()
98 final StructNlMsgHdr hdr = nlMsg.getHeader(); in lookupUidByFamily()
DConntrackMessage.java19 import static android.net.netlink.StructNlMsgHdr.NLM_F_ACK;
20 import static android.net.netlink.StructNlMsgHdr.NLM_F_REPLACE;
21 import static android.net.netlink.StructNlMsgHdr.NLM_F_REQUEST;
40 public static final int STRUCT_SIZE = StructNlMsgHdr.STRUCT_SIZE + StructNfGenMsg.STRUCT_SIZE;
101 super(new StructNlMsgHdr()); in ConntrackMessage()
DStructNlMsgHdr.java30 public class StructNlMsgHdr { class
81 public static StructNlMsgHdr parse(ByteBuffer byteBuffer) { in parse()
87 final StructNlMsgHdr struct = new StructNlMsgHdr(); in parse()
107 public StructNlMsgHdr() { in StructNlMsgHdr() method in StructNlMsgHdr
DNetlinkErrorMessage.java19 import android.net.netlink.StructNlMsgHdr;
32 public static NetlinkErrorMessage parse(StructNlMsgHdr header, ByteBuffer byteBuffer) { in parse()
45 NetlinkErrorMessage(StructNlMsgHdr header) { in NetlinkErrorMessage()
DStructInetDiagMsg.java51 private static final int IDIAG_UID_OFFSET = StructNlMsgHdr.STRUCT_SIZE + 4 +
/frameworks/base/tests/net/java/android/net/netlink/
DNetlinkErrorMessageTest.java19 import static android.net.netlink.StructNlMsgHdr.NLM_F_ACK;
20 import static android.net.netlink.StructNlMsgHdr.NLM_F_REPLACE;
21 import static android.net.netlink.StructNlMsgHdr.NLM_F_REQUEST;
76 final StructNlMsgHdr hdr = errorMsg.getHeader(); in testParseNlmErrorOk()
DNetlinkSocketTest.java28 import android.net.netlink.StructNlMsgHdr;
74 assertTrue(StructNlMsgHdr.STRUCT_SIZE <= response.limit()); in testBasicWorkingGetNeighborsQuery()
82 final StructNlMsgHdr hdr = msg.getHeader(); in testBasicWorkingGetNeighborsQuery()
92 assertTrue((hdr.nlmsg_flags & StructNlMsgHdr.NLM_F_MULTI) != 0); in testBasicWorkingGetNeighborsQuery()
DRtNetlinkNeighborMessageTest.java27 import android.net.netlink.StructNlMsgHdr;
156 final StructNlMsgHdr hdr = neighMsg.getHeader(); in testParseRtmDelNeigh()
183 final StructNlMsgHdr hdr = neighMsg.getHeader(); in testParseRtmNewNeigh()
213 final StructNlMsgHdr hdr = neighMsg.getHeader(); in testParseRtmGetNeighResponse()
216 assertEquals(StructNlMsgHdr.NLM_F_MULTI, hdr.nlmsg_flags); in testParseRtmGetNeighResponse()
DInetDiagSocketTest.java19 import static android.net.netlink.StructNlMsgHdr.NLM_F_DUMP;
20 import static android.net.netlink.StructNlMsgHdr.NLM_F_REQUEST;
37 import android.net.netlink.StructNlMsgHdr;
316 final StructNlMsgHdr hdr = inetDiagMsg.getHeader(); in testParseInetDiagResponse()
319 assertEquals(StructNlMsgHdr.NLM_F_MULTI, hdr.nlmsg_flags); in testParseInetDiagResponse()