/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/ |
D | NetlinkConstantsTest.java | 19 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 …]
|
D | StructNlMsgHdrTest.java | 67 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()
|
D | RtNetlinkNeighborMessageTest.java | 29 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()
|
D | NetlinkErrorMessageTest.java | 28 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()
|
D | NetlinkTestUtils.kt | 21 import android.net.netlink.NetlinkConstants.RTM_DELNEIGH 22 import android.net.netlink.NetlinkConstants.RTM_NEWNEIGH
|
D | NetlinkSocketTest.java | 85 if (hdr.nlmsg_type == NetlinkConstants.NLMSG_DONE) { in testBasicWorkingGetNeighborsQuery() 90 assertEquals(NetlinkConstants.RTM_NEWNEIGH, hdr.nlmsg_type); in testBasicWorkingGetNeighborsQuery()
|
D | ConntrackMessageTest.java | 19 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/ |
D | NetlinkMessage.java | 54 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 …]
|
D | RtNetlinkNeighborMessage.java | 85 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()
|
D | ConntrackMessage.java | 142 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()
|
D | StructInetDiagReqV2.java | 85 final String familyStr = NetlinkConstants.stringForAddressFamily(mSdiagFamily); in toString() 86 final String protocolStr = NetlinkConstants.stringForAddressFamily(mSdiagProtocol); in toString()
|
D | NetlinkConstants.java | 37 public class NetlinkConstants { class 38 private NetlinkConstants() {} in NetlinkConstants() method in NetlinkConstants
|
D | InetDiagMessage.java | 19 import static android.net.netlink.NetlinkConstants.SOCK_DIAG_BY_FAMILY; 125 if (hdr.nlmsg_type == NetlinkConstants.NLMSG_DONE) { in lookupUidByFamily()
|
D | StructNlAttr.java | 183 return NetlinkConstants.alignedLengthOf(nla_len); in getAlignedLength() 281 + "nla_value{" + NetlinkConstants.hexify(nla_value) + "}, " in toString()
|
D | StructNfGenMsg.java | 95 final String familyStr = NetlinkConstants.stringForAddressFamily(nfgen_family); in toString()
|
D | StructNlMsgHdr.java | 146 ? "" : NetlinkConstants.stringForNlMsgType(nlmsg_type, nlFamily)) in toString()
|
D | StructNdMsg.java | 158 + "family{" + NetlinkConstants.stringForAddressFamily((int) ndm_family) + "}, " in toString()
|
D | NetlinkSocket.java | 84 errmsg = "raw bytes: " + NetlinkConstants.hexify(bytes); in sendOneShotKernelMessage()
|
/packages/modules/NetworkStack/common/moduleutils/src/android/net/ip/ |
D | ConntrackMonitor.java | 23 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()
|
D | IpNeighborMonitor.java | 19 import static android.net.netlink.NetlinkConstants.RTM_DELNEIGH; 20 import static android.net.netlink.NetlinkConstants.hexify; 21 import static android.net.netlink.NetlinkConstants.stringForNlMsgType;
|
D | NetlinkMonitor.java | 19 import static android.net.netlink.NetlinkConstants.hexify;
|
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/ |
D | TcpSocketTracker.java | 19 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/ |
D | ConntrackMonitorTest.java | 22 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/ |
D | IpClientLinkObserver.java | 31 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/ |
D | BpfCoordinator.java | 46 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()
|