Home
last modified time | relevance | path

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

/frameworks/base/services/net/java/android/net/netlink/
DNetlinkMessage.java47 final StructNlMsgHdr nlmsghdr = StructNlMsgHdr.parse(byteBuffer); in parse() local
48 if (nlmsghdr == null) { in parse()
52 int payloadLength = NetlinkConstants.alignedLengthOf(nlmsghdr.nlmsg_len); in parse()
60 switch (nlmsghdr.nlmsg_type) { in parse()
63 return (NetlinkMessage) NetlinkErrorMessage.parse(nlmsghdr, byteBuffer); in parse()
66 return new NetlinkMessage(nlmsghdr); in parse()
71 return (NetlinkMessage) RtNetlinkNeighborMessage.parse(nlmsghdr, byteBuffer); in parse()
73 if (nlmsghdr.nlmsg_type <= NetlinkConstants.NLMSG_MAX_RESERVED) { in parse()
77 return new NetlinkMessage(nlmsghdr); in parse()
85 public NetlinkMessage(StructNlMsgHdr nlmsghdr) { in NetlinkMessage() argument
[all …]
DRtNetlinkNeighborMessage.java128 final StructNlMsgHdr nlmsghdr = new StructNlMsgHdr(); in newGetNeighborsRequest() local
129 nlmsghdr.nlmsg_len = length; in newGetNeighborsRequest()
130 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_GETNEIGH; in newGetNeighborsRequest()
131 nlmsghdr.nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP; in newGetNeighborsRequest()
132 nlmsghdr.nlmsg_seq = seqNo; in newGetNeighborsRequest()
133 nlmsghdr.pack(byteBuffer); in newGetNeighborsRequest()
147 final StructNlMsgHdr nlmsghdr = new StructNlMsgHdr(); in newNewNeighborMessage() local
148 nlmsghdr.nlmsg_type = NetlinkConstants.RTM_NEWNEIGH; in newNewNeighborMessage()
149 nlmsghdr.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | NLM_F_REPLACE; in newNewNeighborMessage()
150 nlmsghdr.nlmsg_seq = seqNo; in newNewNeighborMessage()
[all …]