Home
last modified time | relevance | path

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

/kernel/tests/net/test/
Dpackets.py64 scapy.UDP(sport=sport, dport=53) / UDP_PAYLOAD)
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
86 scapy.TCP(sport=sport, dport=dport,
96 scapy.TCP(sport=original.dport, dport=original.sport,
106 scapy.TCP(sport=original.dport, dport=original.sport,
119 scapy.TCP(sport=original.dport, dport=original.sport,
131 scapy.TCP(sport=original.dport, dport=original.sport,
Dxfrm_test.py60 self.assertEqual(4500, udp_hdr.dport)
115 daddr, dport = s.getpeername()[:2]
253 encaptmpl.sport, encaptmpl.dport = encaptmpl.dport, encaptmpl.sport
315 scapy.UDP(sport=4500, dport=encap_port) / payload)
339 sport=srcport, dport=53) / net_test.UDP_PAYLOAD)
447 scapy.UDP(sport=443, dport=32123) / data) + bytes(
450 scapy.UDP(sport=4500, dport=encap_port) /
459 scapy.UDP(sport=443, dport=32123) / data) + bytes(
462 scapy.UDP(sport=4500, dport=encap_port) /
610 scapy.UDP(sport=remote_port, dport=local_port) /
[all …]
Dsock_diag_test.py83 sport, dport = (socketpair[0].getsockname()[1],
85 socketpairs[(addr, sport, dport)] = socketpair
111 dst, dport = s.getpeername()[0:2]
113 self.assertEqual(diag_msg.id.dport, dport)
196 dport = diag_msg.id.dport
197 if (addr, sport, dport) in self.socketpairs:
198 cookies[(addr, sport, dport)] = diag_msg.id.cookie
199 elif (addr, dport, sport) in self.socketpairs:
200 cookies[(addr, sport, dport)] = diag_msg.id.cookie
221 req.id.sport, req.id.dport = req.id.dport, req.id.sport
[all …]
Dsock_diag.py365 dst, dport = s.getpeername()[:2]
368 dport = 0
374 sock_id = InetDiagSockId((sport, dport, src, dst, iface, b"\x00" * 8))
427 sock_id.dport = 443
Dxfrm_tunnel_test.py132 IpType(**ip_hdr_options) / scapy.UDP(sport=src_port, dport=dst_port) /
Dmultinetwork_test.py303 scapy.UDP(sport=sport, dport=53) /