Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
DNetlinkMessage.java40 final StructNlMsgHdr nlmsghdr = StructNlMsgHdr.parse(byteBuffer); in parse() local
41 if (nlmsghdr == null) { in parse()
45 int payloadLength = NetlinkConstants.alignedLengthOf(nlmsghdr.nlmsg_len); in parse()
53 switch (nlmsghdr.nlmsg_type) { in parse()
56 return (NetlinkMessage) NetlinkErrorMessage.parse(nlmsghdr, byteBuffer); in parse()
59 return new NetlinkMessage(nlmsghdr); in parse()
64 return (NetlinkMessage) RtNetlinkNeighborMessage.parse(nlmsghdr, byteBuffer); in parse()
66 return (NetlinkMessage) InetDiagMessage.parse(nlmsghdr, byteBuffer); in parse()
68 return (NetlinkMessage) NduseroptMessage.parse(nlmsghdr, byteBuffer); in parse()
70 if (nlmsghdr.nlmsg_type <= NetlinkConstants.NLMSG_MAX_RESERVED) { in parse()
[all …]
DRtNetlinkNeighborMessage.java122 final StructNlMsgHdr nlmsghdr = new StructNlMsgHdr(); in newGetNeighborsRequest() local
123 nlmsghdr.nlmsg_len = length; in newGetNeighborsRequest()
124 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_GETNEIGH; in newGetNeighborsRequest()
125 nlmsghdr.nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP; in newGetNeighborsRequest()
126 nlmsghdr.nlmsg_seq = seqNo; in newGetNeighborsRequest()
127 nlmsghdr.pack(byteBuffer); in newGetNeighborsRequest()
141 final StructNlMsgHdr nlmsghdr = new StructNlMsgHdr(); in newNewNeighborMessage() local
142 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_NEWNEIGH; in newNewNeighborMessage()
143 nlmsghdr.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | NLM_F_REPLACE; in newNewNeighborMessage()
144 nlmsghdr.nlmsg_seq = seqNo; in newNewNeighborMessage()
[all …]
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/
DTcpSocketTracker.java217 final StructNlMsgHdr nlmsghdr = StructNlMsgHdr.parse(bytes); in pollSocketsInfo() local
218 if (nlmsghdr == null) { in pollSocketsInfo()
222 final int nlmsgLen = nlmsghdr.nlmsg_len; in pollSocketsInfo()
223 log("pollSocketsInfo: nlmsghdr=" + nlmsghdr + ", limit=" + bytes.limit()); in pollSocketsInfo()
225 if (nlmsghdr.nlmsg_type == NLMSG_DONE) break; in pollSocketsInfo()
227 if (nlmsghdr.nlmsg_type != SOCK_DIAG_BY_FAMILY) { in pollSocketsInfo()
230 + nlmsghdr.nlmsg_type); in pollSocketsInfo()