Searched refs:nlmsghdr (Results 1 – 3 of 3) sorted by relevance
40 final StructNlMsgHdr nlmsghdr = StructNlMsgHdr.parse(byteBuffer); in parse() local41 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 …]
122 final StructNlMsgHdr nlmsghdr = new StructNlMsgHdr(); in newGetNeighborsRequest() local123 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() local142 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 …]
217 final StructNlMsgHdr nlmsghdr = StructNlMsgHdr.parse(bytes); in pollSocketsInfo() local218 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()