Home
last modified time | relevance | path

Searched refs:command (Results 1 – 7 of 7) sorted by relevance

/kernel/tests/net/test/
Diproute.py231 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 …]
Dgenetlink.py60 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
Dnetlink.py100 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)
Dtcp_metrics.py64 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:
Dqtaguid_test.py49 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)
Dxfrm.py339 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
Dsock_diag.py117 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_")