Home
last modified time | relevance | path

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

12

/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DNetlinkConstantsTest.java19 import static android.net.netlink.NetlinkConstants.IPCTNL_MSG_CT_DELETE;
20 import static android.net.netlink.NetlinkConstants.IPCTNL_MSG_CT_GET;
21 import static android.net.netlink.NetlinkConstants.IPCTNL_MSG_CT_GET_CTRZERO;
22 import static android.net.netlink.NetlinkConstants.IPCTNL_MSG_CT_GET_DYING;
23 import static android.net.netlink.NetlinkConstants.IPCTNL_MSG_CT_GET_STATS;
24 import static android.net.netlink.NetlinkConstants.IPCTNL_MSG_CT_GET_STATS_CPU;
25 import static android.net.netlink.NetlinkConstants.IPCTNL_MSG_CT_GET_UNCONFIRMED;
26 import static android.net.netlink.NetlinkConstants.IPCTNL_MSG_CT_NEW;
27 import static android.net.netlink.NetlinkConstants.NFNL_SUBSYS_CTNETLINK;
28 import static android.net.netlink.NetlinkConstants.NLMSG_DONE;
[all …]
DStructNlMsgHdrTest.java67 StructNlMsgHdr struct = makeStructNlMsgHdr(NetlinkConstants.RTM_NEWADDR); in testToString()
75 struct = makeStructNlMsgHdr(NetlinkConstants.SOCK_DIAG_BY_FAMILY); in testToString()
86 StructNlMsgHdr struct = makeStructNlMsgHdr(NetlinkConstants.RTM_NEWADDR); in testToStringWithNetlinkFamily()
94 struct = makeStructNlMsgHdr(NetlinkConstants.SOCK_DIAG_BY_FAMILY); in testToStringWithNetlinkFamily()
DRtNetlinkNeighborMessageTest.java29 import android.net.netlink.NetlinkConstants;
93 assertEquals(NetlinkConstants.RTM_DELNEIGH, hdr.nlmsg_type); in testParseRtmDelNeigh()
120 assertEquals(NetlinkConstants.RTM_NEWNEIGH, hdr.nlmsg_type); in testParseRtmNewNeigh()
149 assertEquals(NetlinkConstants.RTM_NEWNEIGH, hdr.nlmsg_type); in testParseRtmGetNeighResponse()
DNetlinkErrorMessageTest.java28 import android.net.netlink.NetlinkConstants;
80 assertEquals(NetlinkConstants.NLMSG_ERROR, hdr.nlmsg_type); in testParseNlmErrorOk()
90 assertEquals(NetlinkConstants.RTM_NEWNEIGH, err.msg.nlmsg_type); in testParseNlmErrorOk()
DNetlinkTestUtils.kt21 import android.net.netlink.NetlinkConstants.RTM_DELNEIGH
22 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()
DConntrackMessageTest.java19 import static android.net.netlink.NetlinkConstants.IPCTNL_MSG_CT_NEW;
20 import static android.net.netlink.NetlinkConstants.NFNL_SUBSYS_CTNETLINK;
/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
DNetlinkMessage.java54 int payloadLength = NetlinkConstants.alignedLengthOf(nlmsghdr.nlmsg_len); in parse()
64 if (nlmsghdr.nlmsg_type <= NetlinkConstants.NLMSG_MAX_RESERVED) { in parse()
106 case NetlinkConstants.NLMSG_ERROR: in parseCtlMessage()
121 case NetlinkConstants.RTM_NEWNEIGH: in parseRtMessage()
122 case NetlinkConstants.RTM_DELNEIGH: in parseRtMessage()
123 case NetlinkConstants.RTM_GETNEIGH: in parseRtMessage()
125 case NetlinkConstants.RTM_NEWNDUSEROPT: in parseRtMessage()
135 case NetlinkConstants.SOCK_DIAG_BY_FAMILY: in parseInetDiagMessage()
145 case NetlinkConstants.NFNL_SUBSYS_CTNETLINK << 8 in parseNfMessage()
146 | NetlinkConstants.IPCTNL_MSG_CT_NEW: in parseNfMessage()
[all …]
DRtNetlinkNeighborMessage.java85 final int kAdditionalSpace = NetlinkConstants.alignedLengthOf( in parse()
107 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_GETNEIGH; in newGetNeighborsRequest()
125 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_NEWNEIGH; in newNewNeighborMessage()
184 spaceRequired += NetlinkConstants.alignedLengthOf( in getRequiredSpace()
188 spaceRequired += NetlinkConstants.alignedLengthOf( in getRequiredSpace()
224 + "linklayeraddr{" + NetlinkConstants.hexify(mLinkLayerAddr) + "} " in toString()
DConntrackMessage.java142 final String protoStr = NetlinkConstants.stringForProtocol(protoNum); in toString()
208 ctmsg.mHeader.nlmsg_type = (NetlinkConstants.NFNL_SUBSYS_CTNETLINK << 8) in newIPv4TimeoutUpdateRequest()
209 | NetlinkConstants.IPCTNL_MSG_CT_NEW; in newIPv4TimeoutUpdateRequest()
268 final int kAdditionalSpace = NetlinkConstants.alignedLengthOf( in parse()
464 return (short) (getHeader().nlmsg_type & ~(NetlinkConstants.NFNL_SUBSYS_CTNETLINK << 8)); in getMessageType()
DStructInetDiagReqV2.java85 final String familyStr = NetlinkConstants.stringForAddressFamily(mSdiagFamily); in toString()
86 final String protocolStr = NetlinkConstants.stringForAddressFamily(mSdiagProtocol); in toString()
DNetlinkConstants.java37 public class NetlinkConstants { class
38 private NetlinkConstants() {} in NetlinkConstants() method in NetlinkConstants
DInetDiagMessage.java19 import static android.net.netlink.NetlinkConstants.SOCK_DIAG_BY_FAMILY;
125 if (hdr.nlmsg_type == NetlinkConstants.NLMSG_DONE) { in lookupUidByFamily()
DStructNlAttr.java183 return NetlinkConstants.alignedLengthOf(nla_len); in getAlignedLength()
281 + "nla_value{" + NetlinkConstants.hexify(nla_value) + "}, " in toString()
DStructNfGenMsg.java95 final String familyStr = NetlinkConstants.stringForAddressFamily(nfgen_family); in toString()
DStructNlMsgHdr.java146 ? "" : NetlinkConstants.stringForNlMsgType(nlmsg_type, nlFamily)) 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/common/moduleutils/src/android/net/ip/
DConntrackMonitor.java23 import android.net.netlink.NetlinkConstants;
118 + NetlinkConstants.stringForNlMsgType(msgType, OsConstants.NETLINK_NETFILTER) in toString()
136 if (msg.getMessageType() != NetlinkConstants.IPCTNL_MSG_CT_NEW) return false; in isEstablishedNatSession()
153 if (msg.getMessageType() != NetlinkConstants.IPCTNL_MSG_CT_DELETE) return false; in isDyingNatSession()
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/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;
428 buffer.position(cur + NetlinkConstants.alignedLengthOf(len)); in skipRemainingAttributesBytesAligned()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DConntrackMonitorTest.java22 import static android.net.netlink.NetlinkConstants.IPCTNL_MSG_CT_DELETE;
23 import static android.net.netlink.NetlinkConstants.IPCTNL_MSG_CT_NEW;
36 import android.net.netlink.NetlinkConstants;
208 (short) (NetlinkConstants.NFNL_SUBSYS_CTNETLINK << 8 | msgType), in makeTestConntrackEvent()
/packages/modules/NetworkStack/src/android/net/ip/
DIpClientLinkObserver.java31 import android.net.netlink.NetlinkConstants;
309 super(h, log, tag, OsConstants.NETLINK_ROUTE, NetlinkConstants.RTMGRP_ND_USEROPT); in MyNetlinkMonitor()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DBpfCoordinator.java46 import android.net.netlink.NetlinkConstants;
1581 if (e.msgType == (NetlinkConstants.NFNL_SUBSYS_CTNETLINK << 8 in accept()
1582 | NetlinkConstants.IPCTNL_MSG_CT_DELETE)) { in accept()
1900 + "msg: " + NetlinkConstants.hexify(msg) + ", " in updateConntrackTimeout()

12