• Home
  • Raw
  • Download

Lines Matching refs:req

244         req = self.sock_diag.DiagReqFromSocket(sock)
245 req.id.cookie = cookie
249 req.id.sport, req.id.dport = req.id.dport, req.id.sport
250 req.id.src, req.id.dst = req.id.dst, req.id.src
251 info = self.sock_diag.GetSockInfo(req)
377 req = sock_diag.InetDiagReqV2((AF_INET6, IPPROTO_TCP, 0, 0xffffffff,
379 self.sock_diag._Dump(code, req, sock_diag.InetDiagMsg, "")
416 req = self.sock_diag.DiagReqFromSocket(s)
418 req.id.cookie = s.getsockopt(net_test.SOL_SOCKET, net_test.SO_COOKIE, 8)
420 req.id.cookie = "\xff" * 16 # INET_DIAG_NOCOOKIE[2]
424 self.sock_diag.GetSockInfo(req)
427 req.id.sport, req.id.dport = req.id.dport, req.id.sport
428 req.id.src, req.id.dst = req.id.dst, req.id.src
430 self.assertSockInfoMatchesSocket(s, self.sock_diag.GetSockInfo(req))
497 req = self.sock_diag.DiagReqFromDiagMsg(diag_msg, IPPROTO_TCP)
498 self.assertRaisesErrno(ENOENT, self.sock_diag.CloseSocket, req)
502 req.id.cookie = real_cookie
503 self.sock_diag.CloseSocket(req)
542 req = sock_diag.InetDiagReqV2((AF_INET6, IPPROTO_TCP, 0, states, sock_id))
543 children = self.sock_diag.Dump(req, NO_BYTECODE)
604 def CheckRstOnClose(self, sock, req, expect_reset, msg, do_close=True): argument
607 self.assertIsNone(req, "Must specify sock or req, not both")
612 self.sock_diag.CloseSocket(req)
683 req = self.sock_diag.DiagReqFromDiagMsg(d, IPPROTO_TCP)
684 req.states = 1 << tcp_test.TCP_SYN_RECV | 1 << tcp_test.TCP_ESTABLISHED
685 req.id.cookie = "\x00" * 8
689 self.assertEqual([], self.sock_diag.Dump(req, bad_bytecode))
693 children = self.sock_diag.Dump(req, bytecode)