/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/ |
D | RtNetlinkNeighborMessage.java | 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; 51 public static RtNetlinkNeighborMessage parse(StructNlMsgHdr header, ByteBuffer byteBuffer) { in parse() 84 final int kMinConsumed = StructNlMsgHdr.STRUCT_SIZE + StructNdMsg.STRUCT_SIZE; in parse() 100 final int length = StructNlMsgHdr.STRUCT_SIZE + StructNdMsg.STRUCT_SIZE; in newGetNeighborsRequest() 105 final StructNlMsgHdr nlmsghdr = new StructNlMsgHdr(); in newGetNeighborsRequest() 124 final StructNlMsgHdr nlmsghdr = new StructNlMsgHdr(); in newNewNeighborMessage() 152 private RtNetlinkNeighborMessage(StructNlMsgHdr header) { in RtNetlinkNeighborMessage() [all …]
|
D | NetlinkMessage.java | 49 final StructNlMsgHdr nlmsghdr = StructNlMsgHdr.parse(byteBuffer); in parse() 55 payloadLength -= StructNlMsgHdr.STRUCT_SIZE; in parse() 82 protected StructNlMsgHdr mHeader; 84 public NetlinkMessage(StructNlMsgHdr nlmsghdr) { in NetlinkMessage() 88 public StructNlMsgHdr getHeader() { in getHeader() 103 private static NetlinkMessage parseCtlMessage(@NonNull StructNlMsgHdr nlmsghdr, in parseCtlMessage() 118 private static NetlinkMessage parseRtMessage(@NonNull StructNlMsgHdr nlmsghdr, in parseRtMessage() 132 private static NetlinkMessage parseInetDiagMessage(@NonNull StructNlMsgHdr nlmsghdr, in parseInetDiagMessage() 142 private static NetlinkMessage parseNfMessage(@NonNull StructNlMsgHdr nlmsghdr, in parseNfMessage()
|
D | InetDiagMessage.java | 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()
|
D | StructNlMsgHdr.java | 32 public class StructNlMsgHdr { class 84 public static StructNlMsgHdr parse(ByteBuffer byteBuffer) { in parse() 90 final StructNlMsgHdr struct = new StructNlMsgHdr(); in parse() 110 public StructNlMsgHdr() { in StructNlMsgHdr() method in StructNlMsgHdr
|
D | ConntrackMessage.java | 21 import static android.net.netlink.StructNlMsgHdr.NLM_F_ACK; 22 import static android.net.netlink.StructNlMsgHdr.NLM_F_REPLACE; 23 import static android.net.netlink.StructNlMsgHdr.NLM_F_REQUEST; 50 public static final int STRUCT_SIZE = StructNlMsgHdr.STRUCT_SIZE + StructNfGenMsg.STRUCT_SIZE; 228 public static ConntrackMessage parse(StructNlMsgHdr header, ByteBuffer byteBuffer) { in parse() 267 final int kMinConsumed = StructNlMsgHdr.STRUCT_SIZE + StructNfGenMsg.STRUCT_SIZE; in parse() 437 super(new StructNlMsgHdr()); in ConntrackMessage() 448 private ConntrackMessage(@NonNull StructNlMsgHdr header, @NonNull StructNfGenMsg nfGenMsg, in ConntrackMessage()
|
D | StructNlMsgErr.java | 30 public static final int STRUCT_SIZE = Integer.BYTES + StructNlMsgHdr.STRUCT_SIZE; 44 struct.msg = StructNlMsgHdr.parse(byteBuffer); in parse() 49 public StructNlMsgHdr msg;
|
D | NetlinkErrorMessage.java | 29 public static NetlinkErrorMessage parse(StructNlMsgHdr header, ByteBuffer byteBuffer) { in parse() 42 NetlinkErrorMessage(StructNlMsgHdr header) { in NetlinkErrorMessage()
|
D | NduseroptMessage.java | 64 NduseroptMessage(@NonNull StructNlMsgHdr header, @NonNull ByteBuffer buf) in NduseroptMessage() 120 public static NduseroptMessage parse(@NonNull StructNlMsgHdr header, @NonNull ByteBuffer buf) { in parse()
|
D | StructInetDiagMsg.java | 43 private static final int IDIAG_UID_OFFSET = StructNlMsgHdr.STRUCT_SIZE + 4 +
|
D | NetlinkConstants.java | 48 StructNlMsgHdr.STRUCT_SIZE + StructInetDiagMsg.STRUCT_SIZE;
|
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/ |
D | StructNlMsgHdrTest.java | 34 public static final short TEST_NLMSG_FLAGS = StructNlMsgHdr.NLM_F_REQUEST 35 | StructNlMsgHdr.NLM_F_MULTI | StructNlMsgHdr.NLM_F_ACK | StructNlMsgHdr.NLM_F_ECHO; 50 private StructNlMsgHdr makeStructNlMsgHdr(short type) { in makeStructNlMsgHdr() 51 final StructNlMsgHdr struct = new StructNlMsgHdr(); in makeStructNlMsgHdr() 67 StructNlMsgHdr struct = makeStructNlMsgHdr(NetlinkConstants.RTM_NEWADDR); in testToString() 86 StructNlMsgHdr struct = makeStructNlMsgHdr(NetlinkConstants.RTM_NEWADDR); in testToStringWithNetlinkFamily()
|
D | ConntrackMessageTest.java | 156 final StructNlMsgHdr hdr = conntrackMessage.getHeader(); in testConntrackParseIPv4TcpTimeoutUpdate() 160 assertEquals((short) (StructNlMsgHdr.NLM_F_REPLACE | StructNlMsgHdr.NLM_F_REQUEST in testConntrackParseIPv4TcpTimeoutUpdate() 161 | StructNlMsgHdr.NLM_F_ACK), hdr.nlmsg_flags); in testConntrackParseIPv4TcpTimeoutUpdate() 205 final StructNlMsgHdr hdr = conntrackMessage.getHeader(); in testConntrackParseIPv4UdpTimeoutUpdate() 209 assertEquals((short) (StructNlMsgHdr.NLM_F_REPLACE | StructNlMsgHdr.NLM_F_REQUEST in testConntrackParseIPv4UdpTimeoutUpdate() 210 | StructNlMsgHdr.NLM_F_ACK), hdr.nlmsg_flags); in testConntrackParseIPv4UdpTimeoutUpdate() 299 final StructNlMsgHdr hdr = conntrackMessage.getHeader(); in testParseCtNew() 303 assertEquals((short) (StructNlMsgHdr.NLM_F_CREATE | StructNlMsgHdr.NLM_F_EXCL), in testParseCtNew()
|
D | NetlinkErrorMessageTest.java | 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; 77 final StructNlMsgHdr hdr = errorMsg.getHeader(); in testParseNlmErrorOk()
|
D | NetlinkSocketTest.java | 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()
|
D | RtNetlinkNeighborMessageTest.java | 33 import android.net.netlink.StructNlMsgHdr; 90 final StructNlMsgHdr hdr = neighMsg.getHeader(); in testParseRtmDelNeigh() 117 final StructNlMsgHdr hdr = neighMsg.getHeader(); in testParseRtmNewNeigh() 147 final StructNlMsgHdr hdr = neighMsg.getHeader(); in testParseRtmGetNeighResponse() 150 assertEquals(StructNlMsgHdr.NLM_F_MULTI, hdr.nlmsg_flags); in testParseRtmGetNeighResponse()
|
D | InetDiagSocketTest.java | 19 import static android.net.netlink.StructNlMsgHdr.NLM_F_DUMP; 20 import static android.net.netlink.StructNlMsgHdr.NLM_F_REQUEST; 260 final StructNlMsgHdr hdr = inetDiagMsg.getHeader(); in testParseInetDiagResponse() 263 assertEquals(StructNlMsgHdr.NLM_F_MULTI, hdr.nlmsg_flags); in testParseInetDiagResponse()
|
D | NduseroptMessageTest.java | 107 final String hexBytesWithoutHeader = hexBytes.substring(StructNlMsgHdr.STRUCT_SIZE * 2); in testParseWithinNetlinkMessage()
|
/packages/modules/Connectivity/Tethering/tests/privileged/src/com/android/networkstack/tethering/ |
D | ConntrackSocketTest.java | 20 import static android.net.netlink.StructNlMsgHdr.NLM_F_DUMP; 21 import static android.net.netlink.StructNlMsgHdr.NLM_F_REQUEST; 32 import android.net.netlink.StructNlMsgHdr; 113 final StructNlMsgHdr nlmsghdr = StructNlMsgHdr.parse(buffer); in testIpv4ConntrackSocket()
|
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/ |
D | TcpSocketTracker.java | 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; 218 final StructNlMsgHdr nlmsghdr = StructNlMsgHdr.parse(bytes); in pollSocketsInfo() 391 return bytes.remaining() >= StructNlMsgHdr.STRUCT_SIZE; in enoughBytesRemainForValidNlMsg()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | OffloadHardwareInterface.java | 19 import static android.net.netlink.StructNlMsgHdr.NLM_F_DUMP; 20 import static android.net.netlink.StructNlMsgHdr.NLM_F_REQUEST; 33 import android.net.netlink.StructNlMsgHdr; 329 final int length = StructNlMsgHdr.STRUCT_SIZE + StructNfGenMsg.STRUCT_SIZE; in sendIpv4NfGenMsg() 334 final StructNlMsgHdr nlh = new StructNlMsgHdr(); in sendIpv4NfGenMsg()
|
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/netlink/ |
D | TcpSocketTrackerTest.java | 46 import android.net.netlink.StructNlMsgHdr; 279 buffer.position(TEST_BUFFER_SIZE - StructNlMsgHdr.STRUCT_SIZE); in testEnoughBytesRemainForValidNlMsg() 282 buffer.position(TEST_BUFFER_SIZE - StructNlMsgHdr.STRUCT_SIZE + 1); in testEnoughBytesRemainForValidNlMsg()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | OffloadHardwareInterfaceTest.java | 47 import android.net.netlink.StructNlMsgHdr; 296 final int expectedLen = StructNlMsgHdr.STRUCT_SIZE + StructNfGenMsg.STRUCT_SIZE; in testSendIpv4NfGenMsg()
|