Home
last modified time | relevance | path

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

/kernel/tests/net/test/
Dpackets.py57 def UDP(version, srcaddr, dstaddr, sport=0): argument
60 if sport == 0:
61 sport = _RandomPort()
64 scapy.UDP(sport=sport, dport=53) / UDP_PAYLOAD)
66 def UDPWithOptions(version, srcaddr, dstaddr, sport=0, lifetime=39): argument
69 scapy.UDP(sport=sport, dport=53) /
74 scapy.UDP(sport=sport, dport=53) /
78 def SYN(dport, version, srcaddr, dstaddr, sport=0, seq=-1): argument
80 if sport == 0:
81 sport = _RandomPort()
[all …]
Dsock_diag_test.py114 sport, dport = (socketpair[0].getsockname()[1],
116 socketpairs[(addr, sport, dport)] = socketpair
137 src, sport = s.getsockname()[0:2]
139 self.assertEqual(diag_msg.id.sport, sport)
223 sport = diag_msg.id.sport
225 if (addr, sport, dport) in self.socketpairs:
226 cookies[(addr, sport, dport)] = diag_msg.id.cookie
227 elif (addr, dport, sport) in self.socketpairs:
228 cookies[(addr, sport, dport)] = diag_msg.id.cookie
249 req.id.sport, req.id.dport = req.id.dport, req.id.sport
[all …]
Dxfrm_test.py112 saddr, sport = s.getsockname()[:2]
120 desc, pkt = packets.UDP(version, saddr, daddr, sport=sport)
245 encaptmpl.sport, encaptmpl.dport = encaptmpl.dport, encaptmpl.sport
304 scapy.UDP(sport=4500, dport=encap_port) / payload)
328 sport=srcport, dport=53) / net_test.UDP_PAYLOAD)
509 scapy.UDP(sport=remote_port, dport=local_port) /
573 scapy.UDP(sport=remote_port, dport=local_port) /
Dnamespace.py159 sock_id.sport = port
Dmultinetwork_base.py637 if expectedudp.sport is None:
638 actualudp.sport = None
657 if expectedtcp.sport is None:
658 actualtcp.sport = None
Dsock_diag.py363 src, sport = s.getsockname()[:2]
374 sock_id = InetDiagSockId((sport, dport, src, dst, iface, "\x00" * 8))