Searched refs:port (Results 1 – 10 of 10) sorted by relevance
/kernel/tests/net/test/ |
D | tcp_fastopen_test.py | 90 port = s.getsockname()[1] 91 self.assertNotEqual(0, port) 92 desc, syn = packets.SYN(53, version, myaddr, remoteaddr, port, seq=None) 122 port = s.getsockname()[1] 124 desc, syn = packets.SYN(53, version, myaddr, remoteaddr, port, seq=None)
|
D | csocket.py | 116 addr, port, flowinfo, scope_id = addr 118 (addr, port), flowinfo, scope_id = addr, 0, 0 120 return SockaddrIn6((family, socket.ntohs(port), socket.ntohl(flowinfo), 124 addr, port = addr 126 return SockaddrIn((family, socket.ntohs(port), addr))
|
D | namespace.py | 164 def HasEstablishedTcpSessionOnPort(port): argument 168 sock_id.sport = port
|
D | sock_diag.py | 231 addr, prefixlen, port = arg 234 arg = InetDiagHostcond((family, prefixlen, port)).Pack() + addr 282 arg = (None, cond.prefix_len, cond.port) 287 arg = (addr, cond.prefix_len, cond.port)
|
D | tcp_test.py | 61 self.port = net_test.BindRandomPort(version, s) 107 desc, syn = packets.SYN(self.port, version, remoteaddr, myaddr)
|
D | sock_diag_test.py | 531 sock_id.sport = self.port 909 port = random.randrange(1024, 65535) 911 s.bind((addr, port)) 912 return port 940 port = s.getsockname()[1] 947 port = self.BindToRandomPort(s, "") 950 self.assertEqual((unspec, port), s.getsockname()[:2]) 956 port = self.BindToRandomPort(s, src) 958 self.assertEqual((src, port), s.getsockname()[:2]) 1117 port = server.getsockname()[1] [all …]
|
D | tcp_repair_test.py | 82 port = s.getsockname()[1] 83 self.assertNotEqual(0, port) 85 desc, expect_syn = packets.SYN(TEST_PORT, version, myaddr, remoteaddr, port, seq=None)
|
D | ping6_test.py | 403 def GetIPv4Unreachable(port): # pylint: disable=unused-variable argument 407 scapy.ICMP(type=8, id=port, seq=1)) 409 def GetIPv6Unreachable(port): argument 413 scapy.ICMPv6EchoRequest(id=port, seq=1, data="foobarbaz")) 419 _, port = s.getsockname() 420 scapy.send(GetIPv6Unreachable(port), verbose=False)
|
D | net_test.py | 237 port = sock.getsockname()[1] 238 return port
|
D | xfrm_tunnel_test.py | 141 def _CreateReceiveSock(version, port=0): argument 144 read_sock.bind((net_test.GetWildcardAddress(version), port))
|