Searched refs:bytecode (Results 1 – 2 of 2) sorted by relevance
/kernel/tests/net/test/ |
D | sock_diag_test.py | 152 bytecode = self.sock_diag.PackBytecode(instructions) 153 decoded = self.sock_diag.DecodeBytecode(bytecode) 156 return bytecode 275 bytecode = self.PackAndCheckBytecode(instructions) 286 self.assertMultiLineEqual(expected, bytecode.encode("hex")) 287 self.assertEqual(76, len(bytecode)) 289 filteredsockets = self.sock_diag.DumpAllInetSockets(IPPROTO_TCP, bytecode, 306 bytecode = self.PackAndCheckBytecode(instructions) 307 self.assertEqual(32, len(bytecode)) 308 sockets = self.sock_diag.DumpAllInetSockets(IPPROTO_TCP, bytecode) [all …]
|
D | sock_diag.py | 264 def DecodeBytecode(bytecode): argument 267 while bytecode: 268 op, rest = cstruct.Read(bytecode, InetDiagBcOp) 294 bytecode = rest 300 def Dump(self, diag_req, bytecode): argument 301 if bytecode: 302 bytecode = self._NlAttr(INET_DIAG_REQ_BYTECODE, bytecode) 304 out = self._Dump(SOCK_DIAG_BY_FAMILY, diag_req, InetDiagMsg, bytecode) 307 def DumpAllInetSockets(self, protocol, bytecode, sock_id=None, ext=0, argument 318 sockets += self.Dump(diag_req, bytecode) [all …]
|