Home
last modified time | relevance | path

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

/kernel/tests/net/test/
Dnetlink.py207 hdr = NLMsgHdr(response)
208 if hdr.type != NLMSG_DONE:
209 raise ValueError("Expected DONE, got type %d" % hdr.type)
213 hdr, data = cstruct.Read(response, NLMsgHdr)
214 if hdr.type == NLMSG_ERROR:
219 raise ValueError("Expected ACK, got type %d" % hdr.type)
Dnamespace.py126 def DumpMounts(hdr): argument
128 print(hdr)
Diproute.py515 hdr = netlink.NLMsgHdr(message)
516 self.MaybeDebugCommand(hdr.type, message)
519 hdr = netlink.NLMsgHdr(message)
520 print(self.CommandToString(hdr.type, message))
723 hdr, data = cstruct.Read(self._Recv(), netlink.NLMsgHdr)
724 if hdr.type == RTM_NEWLINK:
726 elif hdr.type == netlink.NLMSG_ERROR:
730 raise ValueError("Unknown Netlink Message Type %d" % hdr.type)
Dgenetlink.py118 hdr, attrs = self._GetMsg(Genlmsghdr)
Dtcp_metrics.py126 hdr, attrs = self._GetMsg(genetlink.Genlmsghdr)