Home
last modified time | relevance | path

Searched refs:NetlinkConstants (Results 1 – 19 of 19) sorted by relevance

/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
DNetlinkMessage.java45 int payloadLength = NetlinkConstants.alignedLengthOf(nlmsghdr.nlmsg_len); in parse()
55 case NetlinkConstants.NLMSG_ERROR: in parse()
57 case NetlinkConstants.NLMSG_DONE: in parse()
61 case NetlinkConstants.RTM_NEWNEIGH: in parse()
62 case NetlinkConstants.RTM_DELNEIGH: in parse()
63 case NetlinkConstants.RTM_GETNEIGH: in parse()
65 case NetlinkConstants.SOCK_DIAG_BY_FAMILY: in parse()
67 case NetlinkConstants.RTM_NEWNDUSEROPT: in parse()
70 if (nlmsghdr.nlmsg_type <= NetlinkConstants.NLMSG_MAX_RESERVED) { in parse()
DRtNetlinkNeighborMessage.java102 final int kAdditionalSpace = NetlinkConstants.alignedLengthOf( in parse()
124 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_GETNEIGH; in newGetNeighborsRequest()
142 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_NEWNEIGH; in newNewNeighborMessage()
201 spaceRequired += NetlinkConstants.alignedLengthOf( in getRequiredSpace()
205 spaceRequired += NetlinkConstants.alignedLengthOf( in getRequiredSpace()
240 + "linklayeraddr{" + NetlinkConstants.hexify(mLinkLayerAddr) + "} " in toString()
DStructInetDiagReqV2.java85 final String familyStr = NetlinkConstants.stringForAddressFamily(mSdiagFamily); in toString()
86 final String protocolStr = NetlinkConstants.stringForAddressFamily(mSdiagProtocol); in toString()
DNetlinkConstants.java34 public class NetlinkConstants { class
35 private NetlinkConstants() {} in NetlinkConstants() method in NetlinkConstants
DStructNlAttr.java152 return NetlinkConstants.alignedLengthOf(nla_len); in getAlignedLength()
205 + "nla_value{" + NetlinkConstants.hexify(nla_value) + "}, " in toString()
DInetDiagMessage.java19 import static android.net.netlink.NetlinkConstants.SOCK_DIAG_BY_FAMILY;
125 if (hdr.nlmsg_type == NetlinkConstants.NLMSG_DONE) { in lookupUidByFamily()
DStructNlMsgHdr.java128 + "(" + NetlinkConstants.stringForNlMsgType(nlmsg_type) + ")"; in toString()
DStructNdMsg.java158 + "family{" + NetlinkConstants.stringForAddressFamily((int) ndm_family) + "}, " in toString()
DNetlinkSocket.java84 errmsg = "raw bytes: " + NetlinkConstants.hexify(bytes); in sendOneShotKernelMessage()
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DRtNetlinkNeighborMessageTest.java28 import android.net.netlink.NetlinkConstants;
92 assertEquals(NetlinkConstants.RTM_DELNEIGH, hdr.nlmsg_type); in testParseRtmDelNeigh()
119 assertEquals(NetlinkConstants.RTM_NEWNEIGH, hdr.nlmsg_type); in testParseRtmNewNeigh()
148 assertEquals(NetlinkConstants.RTM_NEWNEIGH, hdr.nlmsg_type); in testParseRtmGetNeighResponse()
DNetlinkErrorMessageTest.java27 import android.net.netlink.NetlinkConstants;
79 assertEquals(NetlinkConstants.NLMSG_ERROR, hdr.nlmsg_type); in testParseNlmErrorOk()
89 assertEquals(NetlinkConstants.RTM_NEWNEIGH, err.msg.nlmsg_type); in testParseNlmErrorOk()
DNetlinkTestUtils.kt19 import android.net.netlink.NetlinkConstants.RTM_DELNEIGH
20 import android.net.netlink.NetlinkConstants.RTM_NEWNEIGH
DNetlinkSocketTest.java85 if (hdr.nlmsg_type == NetlinkConstants.NLMSG_DONE) { in testBasicWorkingGetNeighborsQuery()
90 assertEquals(NetlinkConstants.RTM_NEWNEIGH, hdr.nlmsg_type); in testBasicWorkingGetNeighborsQuery()
DInetDiagSocketTest.java261 assertEquals(NetlinkConstants.SOCK_DIAG_BY_FAMILY, hdr.nlmsg_type); in testParseInetDiagResponse()
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/
DTcpSocketTracker.java19 import static android.net.netlink.NetlinkConstants.INET_DIAG_MEMINFO;
20 import static android.net.netlink.NetlinkConstants.NLMSG_DONE;
21 import static android.net.netlink.NetlinkConstants.SOCKDIAG_MSG_HEADER_SIZE;
22 import static android.net.netlink.NetlinkConstants.SOCK_DIAG_BY_FAMILY;
45 import android.net.netlink.NetlinkConstants;
427 buffer.position(cur + NetlinkConstants.alignedLengthOf(len)); in skipRemainingAttributesBytesAligned()
/packages/modules/NetworkStack/common/moduleutils/src/android/net/ip/
DIpNeighborMonitor.java19 import static android.net.netlink.NetlinkConstants.RTM_DELNEIGH;
20 import static android.net.netlink.NetlinkConstants.hexify;
21 import static android.net.netlink.NetlinkConstants.stringForNlMsgType;
DNetlinkMonitor.java19 import static android.net.netlink.NetlinkConstants.hexify;
/packages/modules/NetworkStack/src/android/net/ip/
DIpClientLinkObserver.java31 import android.net.netlink.NetlinkConstants;
293 super(h, log, tag, OsConstants.NETLINK_ROUTE, NetlinkConstants.RTMGRP_ND_USEROPT); in MyNetlinkMonitor()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/netlink/
DTcpSocketTrackerTest.java19 import static android.net.netlink.NetlinkConstants.SOCKDIAG_MSG_HEADER_SIZE;