Searched refs:port (Results 1 – 9 of 9) sorted by relevance
/kernel/tests/net/test/ |
D | tcp_fastopen_test.py | 81 port = s.getsockname()[1] 82 self.assertNotEqual(0, port) 83 desc, syn = packets.SYN(53, version, myaddr, remoteaddr, port, seq=None) 113 port = s.getsockname()[1] 115 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 | tcp_test.py | 54 self.port = net_test.BindRandomPort(version, s) 100 desc, syn = packets.SYN(self.port, version, remoteaddr, myaddr)
|
D | sock_diag.py | 228 addr, prefixlen, port = arg 231 arg = InetDiagHostcond((family, prefixlen, port)).Pack() + addr 279 arg = (None, cond.prefix_len, cond.port) 284 arg = (addr, cond.prefix_len, cond.port)
|
D | sock_diag_test.py | 540 sock_id.sport = self.port 934 port = random.randrange(1024, 65535) 936 s.bind((addr, port)) 937 return port 964 port = s.getsockname()[1] 970 port = self.BindToRandomPort(s, "") 973 self.assertEqual((unspec, port), s.getsockname()[:2]) 978 port = self.BindToRandomPort(s, src) 980 self.assertEqual((src, port), s.getsockname()[:2]) 1132 port = server.getsockname()[1] [all …]
|
D | ping6_test.py | 394 def GetIPv4Unreachable(port): # pylint: disable=unused-variable argument 398 scapy.ICMP(type=8, id=port, seq=1)) 400 def GetIPv6Unreachable(port): argument 404 scapy.ICMPv6EchoRequest(id=port, seq=1, data="foobarbaz")) 410 _, port = s.getsockname() 411 scapy.send(GetIPv6Unreachable(port), verbose=False) 870 msglist[0][2][1].port = cmsg[0][2][1].port
|
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 | net_test.py | 176 port = sock.getsockname()[1] 177 return port
|
D | xfrm_tunnel_test.py | 108 def _CreateReceiveSock(version, port=0): argument 111 read_sock.bind((net_test.GetWildcardAddress(version), port))
|