Home
last modified time | relevance | path

Searched refs:port (Results 1 – 9 of 9) sorted by relevance

/kernel/tests/net/test/
Dtcp_fastopen_test.py81 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)
Dcsocket.py116 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))
Dtcp_test.py54 self.port = net_test.BindRandomPort(version, s)
100 desc, syn = packets.SYN(self.port, version, remoteaddr, myaddr)
Dsock_diag.py228 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)
Dsock_diag_test.py540 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 …]
Dping6_test.py394 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
Dtcp_repair_test.py82 port = s.getsockname()[1]
83 self.assertNotEqual(0, port)
85 desc, expect_syn = packets.SYN(TEST_PORT, version, myaddr, remoteaddr, port, seq=None)
Dnet_test.py176 port = sock.getsockname()[1]
177 return port
Dxfrm_tunnel_test.py108 def _CreateReceiveSock(version, port=0): argument
111 read_sock.bind((net_test.GetWildcardAddress(version), port))