/kernel/tests/net/test/ |
D | iproute.py | 231 def CommandVerb(command): argument 232 return ["NEW", "DEL", "GET", "SET"][command % 4] 235 def CommandSubject(command): argument 236 return ["LINK", "ADDR", "ROUTE", "NEIGH", "RULE"][(command - 16) / 4] 239 def CommandName(command): argument 241 return "RTM_%s%s" % (CommandVerb(command), CommandSubject(command)) 243 return "RTM_%d" % command 255 def _Decode(self, command, msg, nla_type, nla_data, nested=0): argument 286 if command == -RTA_METRICS: 288 elif command == -IFLA_LINKINFO: [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)) 95 def _Decode(self, command, msg, nla_type, nla_data): argument
|
D | netlink.py | 100 def _Decode(self, command, msg, nla_type, nla_data): argument 115 def _ParseAttributes(self, command, msg, data, nested=0): argument 138 nla_name, nla_data = self._Decode(command, msg, nla.nla_type, nla_data) 162 def MaybeDebugCommand(self, command, flags, data): argument 196 def _SendNlRequest(self, command, data, flags): argument 199 nlmsg = NLMsgHdr((length, command, flags, self.seq, self.pid)).Pack() 201 self.MaybeDebugCommand(command, flags, nlmsg + data) 244 def _Dump(self, command, msg, msgtype, attrs): argument 261 nlmsghdr = NLMsgHdr((length, command, flags, self.seq, self.pid)) 265 self.MaybeDebugCommand(command, flags, request)
|
D | tcp_metrics.py | 64 def _Decode(self, command, msg, nla_type, nla_data): argument 86 def MaybeDebugCommand(self, command, unused_flags, data): argument 87 if "ALL" not in self.NL_DEBUG and command not in self.NL_DEBUG:
|
D | qtaguid_test.py | 49 def WriteToCtrl(self, command): argument 51 ctrl_file.write(command) 173 command = "t %d %d %d" % (sk.fileno(), tag, uid) 174 self.WriteToCtrl(command) 184 command = "t %d %d %d" % (sk.fileno(), tag, uid) 185 self.WriteToCtrl(command)
|
D | xfrm.py | 339 def MaybeDebugCommand(self, command, flags, data): argument 343 if command == XFRM_MSG_GETSA: 348 elif command == XFRM_MSG_DELSA: 350 elif command == XFRM_MSG_ALLOCSPI: 352 elif command == XFRM_MSG_NEWPOLICY: 357 cmdname = self._GetConstantName(command, "XFRM_MSG_") 363 def _Decode(self, command, unused_msg, nla_type, nla_data): argument
|
D | sock_diag.py | 117 def _Decode(self, command, msg, nla_type, nla_data): argument 162 def MaybeDebugCommand(self, command, unused_flags, data): argument 163 name = self._GetConstantName(__name__, command, "SOCK_")
|