Searched refs:sport (Results 1 – 8 of 8) sorted by relevance
/kernel/tests/net/test/ |
D | packets.py | 57 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 …]
|
D | sock_diag_test.py | 114 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 …]
|
D | multinetwork_test.py | 85 sport=None, seq=None) 102 desc, expected = packets.UDP(version, myaddr, dstaddr, sport=None) 122 inner = str(packets.UDP(inner_version, inner_src, inner_dst, sport=None)[1]) 189 sport = net_test.BindRandomPort(version, s) 192 desc, expected = packets.UDP(version, unspec, dstaddr, sport) 300 sport = s.getsockname()[1] 308 scapy.UDP(sport=sport, dport=53) / 343 sport = s.getsockname()[1] 347 sport=sport) 864 sport = s.getsockname()[1] [all …]
|
D | xfrm_test.py | 112 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) /
|
D | multinetwork_base.py | 637 if expectedudp.sport is None: 638 actualudp.sport = None 657 if expectedtcp.sport is None: 658 actualtcp.sport = None
|
D | sock_diag.py | 363 src, sport = s.getsockname()[:2] 374 sock_id = InetDiagSockId((sport, dport, src, dst, iface, "\x00" * 8))
|
D | namespace.py | 159 sock_id.sport = port
|
D | xfrm_tunnel_test.py | 135 IpType(**ip_hdr_options) / scapy.UDP(sport=src_port, dport=dst_port) /
|