Lines Matching refs:req
147 req = self.sock_diag.DiagReqFromSocket(sock)
148 req.id.cookie = cookie
149 diag_msg = self.sock_diag.GetSockDiag(req)
150 req.states = 1 << diag_msg.state
258 req = sock_diag.InetDiagReqV2((AF_INET6, IPPROTO_TCP, 0, 0xffffffff,
260 self.sock_diag._Dump(code, req, sock_diag.InetDiagMsg, "")
315 req = self.sock_diag.DiagReqFromDiagMsg(diag_msg, IPPROTO_TCP)
316 self.assertRaisesErrno(ENOENT, self.sock_diag.CloseSocket, req)
320 req.id.cookie = real_cookie
321 self.sock_diag.CloseSocket(req)
366 req = sock_diag.InetDiagReqV2((AF_INET6, IPPROTO_TCP, 0, states, sock_id))
367 children = self.sock_diag.Dump(req, NO_BYTECODE)
384 def CheckRstOnClose(self, sock, req, expect_reset, msg, do_close=True): argument
387 self.assertIsNone(req, "Must specify sock or req, not both")
392 self.sock_diag.CloseSocket(req)
423 req = self.sock_diag.DiagReqFromDiagMsg(d, IPPROTO_TCP)
424 req.states = 1 << tcp_test.TCP_SYN_RECV | 1 << tcp_test.TCP_ESTABLISHED
425 req.id.cookie = "\x00" * 8
426 children = self.sock_diag.Dump(req, NO_BYTECODE)