Home
last modified time | relevance | path

Searched refs:nlmsghdr (Results 1 – 5 of 5) sorted by relevance

/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
DNetlinkMessage.java49 final StructNlMsgHdr nlmsghdr = StructNlMsgHdr.parse(byteBuffer); in parse() local
50 if (nlmsghdr == null) { in parse()
54 int payloadLength = NetlinkConstants.alignedLengthOf(nlmsghdr.nlmsg_len); in parse()
64 if (nlmsghdr.nlmsg_type <= NetlinkConstants.NLMSG_MAX_RESERVED) { in parse()
65 return parseCtlMessage(nlmsghdr, byteBuffer, payloadLength); in parse()
72 return parseRtMessage(nlmsghdr, byteBuffer); in parse()
74 return parseInetDiagMessage(nlmsghdr, byteBuffer); in parse()
76 return parseNfMessage(nlmsghdr, byteBuffer); in parse()
84 public NetlinkMessage(StructNlMsgHdr nlmsghdr) { in NetlinkMessage() argument
85 mHeader = nlmsghdr; in NetlinkMessage()
[all …]
DRtNetlinkNeighborMessage.java105 final StructNlMsgHdr nlmsghdr = new StructNlMsgHdr(); in newGetNeighborsRequest() local
106 nlmsghdr.nlmsg_len = length; in newGetNeighborsRequest()
107 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_GETNEIGH; in newGetNeighborsRequest()
108 nlmsghdr.nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP; in newGetNeighborsRequest()
109 nlmsghdr.nlmsg_seq = seqNo; in newGetNeighborsRequest()
110 nlmsghdr.pack(byteBuffer); in newGetNeighborsRequest()
124 final StructNlMsgHdr nlmsghdr = new StructNlMsgHdr(); in newNewNeighborMessage() local
125 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_NEWNEIGH; in newNewNeighborMessage()
126 nlmsghdr.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | NLM_F_REPLACE; in newNewNeighborMessage()
127 nlmsghdr.nlmsg_seq = seqNo; in newNewNeighborMessage()
[all …]
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/
DTcpSocketTracker.java218 final StructNlMsgHdr nlmsghdr = StructNlMsgHdr.parse(bytes); in pollSocketsInfo() local
219 if (nlmsghdr == null) { in pollSocketsInfo()
223 final int nlmsgLen = nlmsghdr.nlmsg_len; in pollSocketsInfo()
224 log("pollSocketsInfo: nlmsghdr=" + nlmsghdr + ", limit=" + bytes.limit()); in pollSocketsInfo()
226 if (nlmsghdr.nlmsg_type == NLMSG_DONE) break; in pollSocketsInfo()
228 if (nlmsghdr.nlmsg_type != SOCK_DIAG_BY_FAMILY) { in pollSocketsInfo()
231 + nlmsghdr.nlmsg_type); in pollSocketsInfo()
/packages/modules/Connectivity/Tethering/tests/privileged/src/com/android/networkstack/tethering/
DConntrackSocketTest.java113 final StructNlMsgHdr nlmsghdr = StructNlMsgHdr.parse(buffer); in testIpv4ConntrackSocket() local
114 assertNotNull(nlmsghdr); in testIpv4ConntrackSocket()
118 if (nlmsghdr.nlmsg_type == ((NFNL_SUBSYS_CTNETLINK << 8) | IPCTNL_MSG_CT_NEW)) { in testIpv4ConntrackSocket()
/packages/modules/Connectivity/Tethering/jni/
Dcom_android_networkstack_tethering_BpfUtils.cpp99 nlmsghdr h; in sendAndProcessNetlinkResponse()
207 nlmsghdr n; in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf()
310 nlmsghdr n; in com_android_networkstack_tethering_BpfUtils_tcFilterDelDev()