Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/common/netlinkclient/src/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;
68 public static RtNetlinkNeighborMessage parse(StructNlMsgHdr header, ByteBuffer byteBuffer) { in parse()
101 final int kMinConsumed = StructNlMsgHdr.STRUCT_SIZE + StructNdMsg.STRUCT_SIZE; in parse()
117 final int length = StructNlMsgHdr.STRUCT_SIZE + StructNdMsg.STRUCT_SIZE; in newGetNeighborsRequest()
122 final StructNlMsgHdr nlmsghdr = new StructNlMsgHdr(); in newGetNeighborsRequest()
141 final StructNlMsgHdr nlmsghdr = new StructNlMsgHdr(); in newNewNeighborMessage()
169 private RtNetlinkNeighborMessage(StructNlMsgHdr header) { in RtNetlinkNeighborMessage()
[all …]
DNetlinkMessage.java40 final StructNlMsgHdr nlmsghdr = StructNlMsgHdr.parse(byteBuffer); in parse()
46 payloadLength -= StructNlMsgHdr.STRUCT_SIZE; in parse()
80 protected StructNlMsgHdr mHeader;
82 public NetlinkMessage(StructNlMsgHdr nlmsghdr) { in NetlinkMessage()
86 public StructNlMsgHdr getHeader() { in getHeader()
DInetDiagMessage.java21 import static android.net.netlink.StructNlMsgHdr.NLM_F_DUMP;
22 import static android.net.netlink.StructNlMsgHdr.NLM_F_REQUEST;
86 final byte[] bytes = new byte[StructNlMsgHdr.STRUCT_SIZE + StructInetDiagReqV2.STRUCT_SIZE]; in InetDiagReqV2()
90 final StructNlMsgHdr nlMsgHdr = new StructNlMsgHdr(); in InetDiagReqV2()
104 private InetDiagMessage(StructNlMsgHdr header) { in InetDiagMessage()
109 public static InetDiagMessage parse(StructNlMsgHdr header, ByteBuffer byteBuffer) { in parse()
124 final StructNlMsgHdr hdr = nlMsg.getHeader(); in lookupUidByFamily()
DStructNlMsgHdr.java29 public class StructNlMsgHdr { class
80 public static StructNlMsgHdr parse(ByteBuffer byteBuffer) { in parse()
86 final StructNlMsgHdr struct = new StructNlMsgHdr(); in parse()
106 public StructNlMsgHdr() { in StructNlMsgHdr() method in StructNlMsgHdr
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()
DStructNlMsgErr.java30 public static final int STRUCT_SIZE = Integer.BYTES + StructNlMsgHdr.STRUCT_SIZE;
44 struct.msg = StructNlMsgHdr.parse(byteBuffer); in parse()
49 public StructNlMsgHdr msg;
DNetlinkErrorMessage.java29 public static NetlinkErrorMessage parse(StructNlMsgHdr header, ByteBuffer byteBuffer) { in parse()
42 NetlinkErrorMessage(StructNlMsgHdr header) { in NetlinkErrorMessage()
DNduseroptMessage.java64 NduseroptMessage(@NonNull StructNlMsgHdr header, @NonNull ByteBuffer buf) in NduseroptMessage()
120 public static NduseroptMessage parse(@NonNull StructNlMsgHdr header, @NonNull ByteBuffer buf) { in parse()
DStructInetDiagMsg.java43 private static final int IDIAG_UID_OFFSET = StructNlMsgHdr.STRUCT_SIZE + 4 +
DNetlinkConstants.java45 StructNlMsgHdr.STRUCT_SIZE + StructInetDiagMsg.STRUCT_SIZE;
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DRtNetlinkNeighborMessageTest.java32 import android.net.netlink.StructNlMsgHdr;
89 final StructNlMsgHdr hdr = neighMsg.getHeader(); in testParseRtmDelNeigh()
116 final StructNlMsgHdr hdr = neighMsg.getHeader(); in testParseRtmNewNeigh()
146 final StructNlMsgHdr hdr = neighMsg.getHeader(); in testParseRtmGetNeighResponse()
149 assertEquals(StructNlMsgHdr.NLM_F_MULTI, hdr.nlmsg_flags); in testParseRtmGetNeighResponse()
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()
DInetDiagSocketTest.java19 import static android.net.netlink.StructNlMsgHdr.NLM_F_DUMP;
20 import static android.net.netlink.StructNlMsgHdr.NLM_F_REQUEST;
259 final StructNlMsgHdr hdr = inetDiagMsg.getHeader(); in testParseInetDiagResponse()
262 assertEquals(StructNlMsgHdr.NLM_F_MULTI, hdr.nlmsg_flags); in testParseInetDiagResponse()
DNduseroptMessageTest.java106 final String hexBytesWithoutHeader = hexBytes.substring(StructNlMsgHdr.STRUCT_SIZE * 2); in testParseWithinNetlinkMessage()
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/
DTcpSocketTracker.java23 import static android.net.netlink.StructNlMsgHdr.NLM_F_DUMP;
24 import static android.net.netlink.StructNlMsgHdr.NLM_F_REQUEST;
48 import android.net.netlink.StructNlMsgHdr;
217 final StructNlMsgHdr nlmsghdr = StructNlMsgHdr.parse(bytes); in pollSocketsInfo()
390 return bytes.remaining() >= StructNlMsgHdr.STRUCT_SIZE; in enoughBytesRemainForValidNlMsg()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/netlink/
DTcpSocketTrackerTest.java46 import android.net.netlink.StructNlMsgHdr;
280 buffer.position(TEST_BUFFER_SIZE - StructNlMsgHdr.STRUCT_SIZE); in testEnoughBytesRemainForValidNlMsg()
283 buffer.position(TEST_BUFFER_SIZE - StructNlMsgHdr.STRUCT_SIZE + 1); in testEnoughBytesRemainForValidNlMsg()