Home
last modified time | relevance | path

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

/kernel/tests/net/test/
Dtcp_fastopen_test.py90 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)
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))
Dnamespace.py164 def HasEstablishedTcpSessionOnPort(port): argument
168 sock_id.sport = port
Dsock_diag.py231 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)
Dtcp_test.py61 self.port = net_test.BindRandomPort(version, s)
107 desc, syn = packets.SYN(self.port, version, remoteaddr, myaddr)
Dsock_diag_test.py531 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 …]
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)
Dping6_test.py403 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)
Dnet_test.py237 port = sock.getsockname()[1]
238 return port
Dxfrm_tunnel_test.py141 def _CreateReceiveSock(version, port=0): argument
144 read_sock.bind((net_test.GetWildcardAddress(version), port))