/kernel/tests/net/test/ |
D | iproute.py | 268 def CommandVerb(command): argument 269 return ["NEW", "DEL", "GET", "SET"][command % 4] 272 def CommandSubject(command): argument 273 return ["LINK", "ADDR", "ROUTE", "NEIGH", "RULE"][(command - 16) // 4] 276 def CommandName(command): argument 278 return "RTM_%s%s" % (CommandVerb(command), CommandSubject(command)) 280 return "RTM_%d" % command 292 def _Decode(self, command, msg, nla_type, nla_data, nested): argument 334 elif CommandSubject(command) == "ADDR": 336 elif CommandSubject(command) == "LINK": [all …]
|
D | genetlink.py | 60 def _SendCommand(self, family, command, version, data, flags): argument 61 genlmsghdr = Genlmsghdr((command, version)) 64 def _Dump(self, family, command, version): argument 65 msg = Genlmsghdr((command, version)) 96 def _Decode(self, command, msg, nla_type, nla_data, nested): argument
|
D | netlink.py | 120 def _Decode(self, command, msg, nla_type, nla_data, nested): argument 135 def _ParseAttributes(self, command, msg, data, nested): argument 159 nla_name, nla_data = self._Decode(command, msg, nla.nla_type, nla_data, nested) 191 def MaybeDebugCommand(self, command, flags, data): argument 225 def _SendNlRequest(self, command, data, flags): argument 228 nlmsg = NLMsgHdr((length, command, flags, self.seq, self.pid)).Pack() 230 self.MaybeDebugCommand(command, flags, nlmsg + data) 273 def _Dump(self, command, msg, msgtype, attrs=b""): argument 290 nlmsghdr = NLMsgHdr((length, command, flags, self.seq, self.pid)) 294 self.MaybeDebugCommand(command, flags, request)
|
D | tcp_metrics.py | 65 def _Decode(self, command, msg, nla_type, nla_data, nested): argument 87 def MaybeDebugCommand(self, command, unused_flags, data): argument 88 if "ALL" not in self.NL_DEBUG and command not in self.NL_DEBUG:
|
D | xfrm.py | 347 def MaybeDebugCommand(self, command, flags, data): argument 351 if command == XFRM_MSG_GETSA: 356 elif command == XFRM_MSG_DELSA: 358 elif command == XFRM_MSG_ALLOCSPI: 360 elif command == XFRM_MSG_NEWPOLICY: 365 cmdname = self._GetConstantName(command, "XFRM_MSG_") 371 def _Decode(self, command, unused_msg, nla_type, nla_data, nested): argument
|
D | sock_diag.py | 120 def _Decode(self, command, msg, nla_type, nla_data, nested): argument 165 def MaybeDebugCommand(self, command, unused_flags, data): argument 166 name = self._GetConstantName(__name__, command, "SOCK_")
|