Home
last modified time | relevance | path

Searched refs:sport (Results 1 – 6 of 6) sorted by relevance

/kernel/tests/net/test/
Dpackets.py55 def UDP(version, srcaddr, dstaddr, sport=0): argument
58 if sport == 0:
59 sport = _RandomPort()
62 scapy.UDP(sport=sport, dport=53) / UDP_PAYLOAD)
64 def UDPWithOptions(version, srcaddr, dstaddr, sport=0): argument
67 scapy.UDP(sport=sport, dport=53) /
72 scapy.UDP(sport=sport, dport=53) /
76 def SYN(dport, version, srcaddr, dstaddr, sport=0, seq=-1): argument
78 if sport == 0:
79 sport = _RandomPort()
[all …]
Dsock_diag_test.py67 sport, dport = (socketpair[0].getsockname()[1],
69 socketpairs[(addr, sport, dport)] = socketpair
90 src, sport = s.getsockname()[0:2]
92 self.assertEqual(diag_msg.id.sport, sport)
158 sport = diag_msg.id.sport
160 if (addr, sport, dport) in self.socketpairs:
161 cookies[(addr, sport, dport)] = diag_msg.id.cookie
162 elif (addr, dport, sport) in self.socketpairs:
163 cookies[(addr, sport, dport)] = diag_msg.id.cookie
224 (sock_diag.INET_DIAG_BC_S_GE, 1, 5, diag_msg.id.sport),
[all …]
Dxfrm_test.py111 saddr, sport = s.getsockname()[:2]
250 encaptmpl.sport, encaptmpl.dport = encaptmpl.dport, encaptmpl.sport
301 scapy.UDP(sport=4500, dport=encap_port) / broken)
308 scapy.UDP(sport=4500, dport=encap_port) / payload)
316 scapy.UDP(sport=srcport, dport=53) / "foo")
Dmultinetwork_test.py120 sport=None, seq=None)
135 desc, expected = packets.UDP(version, myaddr, dstaddr, sport=None)
155 inner = str(packets.UDP(inner_version, inner_src, inner_dst, sport=None)[1])
225 sport = net_test.BindRandomPort(version, s)
228 desc, expected = packets.UDP(version, unspec, dstaddr, sport)
315 sport = s.getsockname()[1]
323 scapy.UDP(sport=sport, dport=53) /
354 sport = s.getsockname()[1]
358 sport=sport)
768 sport = s.getsockname()[1]
[all …]
Dmultinetwork_base.py563 if expectedudp.sport is None:
564 actualudp.sport = None
583 if expectedtcp.sport is None:
584 actualtcp.sport = None
Dsock_diag.py364 src, sport = s.getsockname()[:2]
375 sock_id = InetDiagSockId((sport, dport, src, dst, iface, "\x00" * 8))