Searched refs:StructNlMsgHdr (Results 1 – 17 of 17) sorted by relevance
19 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 …]
40 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()
21 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()
29 public class StructNlMsgHdr { class80 public static StructNlMsgHdr parse(ByteBuffer byteBuffer) { in parse()86 final StructNlMsgHdr struct = new StructNlMsgHdr(); in parse()106 public StructNlMsgHdr() { in StructNlMsgHdr() method in StructNlMsgHdr
19 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()
30 public static final int STRUCT_SIZE = Integer.BYTES + StructNlMsgHdr.STRUCT_SIZE;44 struct.msg = StructNlMsgHdr.parse(byteBuffer); in parse()49 public StructNlMsgHdr msg;
29 public static NetlinkErrorMessage parse(StructNlMsgHdr header, ByteBuffer byteBuffer) { in parse()42 NetlinkErrorMessage(StructNlMsgHdr header) { in NetlinkErrorMessage()
64 NduseroptMessage(@NonNull StructNlMsgHdr header, @NonNull ByteBuffer buf) in NduseroptMessage()120 public static NduseroptMessage parse(@NonNull StructNlMsgHdr header, @NonNull ByteBuffer buf) { in parse()
43 private static final int IDIAG_UID_OFFSET = StructNlMsgHdr.STRUCT_SIZE + 4 +
45 StructNlMsgHdr.STRUCT_SIZE + StructInetDiagMsg.STRUCT_SIZE;
32 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()
19 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()
28 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()
19 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()
106 final String hexBytesWithoutHeader = hexBytes.substring(StructNlMsgHdr.STRUCT_SIZE * 2); in testParseWithinNetlinkMessage()
23 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()
46 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()