Searched refs:nlmsghdr (Results 1 – 5 of 5) sorted by relevance
49 final StructNlMsgHdr nlmsghdr = StructNlMsgHdr.parse(byteBuffer); in parse() local50 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() argument85 mHeader = nlmsghdr; in NetlinkMessage()[all …]
105 final StructNlMsgHdr nlmsghdr = new StructNlMsgHdr(); in newGetNeighborsRequest() local106 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() local125 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 …]
218 final StructNlMsgHdr nlmsghdr = StructNlMsgHdr.parse(bytes); in pollSocketsInfo() local219 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()
113 final StructNlMsgHdr nlmsghdr = StructNlMsgHdr.parse(buffer); in testIpv4ConntrackSocket() local114 assertNotNull(nlmsghdr); in testIpv4ConntrackSocket()118 if (nlmsghdr.nlmsg_type == ((NFNL_SUBSYS_CTNETLINK << 8) | IPCTNL_MSG_CT_NEW)) { in testIpv4ConntrackSocket()
99 nlmsghdr h; in sendAndProcessNetlinkResponse()207 nlmsghdr n; in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf()310 nlmsghdr n; in com_android_networkstack_tethering_BpfUtils_tcFilterDelDev()