Home | History | Annotate | Download | only in test

Lines Matching full:bytecode

105     bytecode = self.sock_diag.PackBytecode(instructions)
106 decoded = self.sock_diag.DecodeBytecode(bytecode)
109 return bytecode
198 bytecode = self.PackAndCheckBytecode(instructions)
209 self.assertMultiLineEqual(expected, bytecode.encode("hex"))
210 self.assertEquals(76, len(bytecode))
212 filteredsockets = self.sock_diag.DumpAllInetSockets(IPPROTO_TCP, bytecode,
218 # Pick a few sockets in hash table order, and check that the bytecode we
229 bytecode = self.PackAndCheckBytecode(instructions)
230 self.assertEquals(32, len(bytecode))
231 sockets = self.sock_diag.DumpAllInetSockets(IPPROTO_TCP, bytecode)
245 # sockets other than the ones it creates itself. Make the bytecode more
284 """Checks for a bug in validating port comparison bytecode.
290 bytecode = sock_diag.InetDiagBcOp((sock_diag.INET_DIAG_BC_D_GE, 4, 8))
292 self.sock_diag.DecodeBytecode(bytecode))
295 self.sock_diag.DumpAllInetSockets, IPPROTO_TCP, bytecode.Pack())
523 bytecode = self.PackAndCheckBytecode(
525 children = self.sock_diag.Dump(req, bytecode)
761 """Tests SOCK_DIAG bytecode filters that use marks.
766 a52e95a net: diag: allow socket bytecode filters to match socket marks
774 bytecode = self.sock_diag.PackBytecode(instructions)
776 IPPROTO_TCP, bytecode, states=(1 << tcp_test.TCP_ESTABLISHED))