Home
last modified time | relevance | path

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

/system/extras/tests/net_test/
Dpackets.py56 def UDP(version, srcaddr, dstaddr, sport=0): argument
59 if sport == 0:
60 sport = RandomPort()
63 scapy.UDP(sport=sport, dport=53) / UDP_PAYLOAD)
65 def UDPWithOptions(version, srcaddr, dstaddr, sport=0): argument
68 scapy.UDP(sport=sport, dport=53) /
73 scapy.UDP(sport=sport, dport=53) /
77 def SYN(dport, version, srcaddr, dstaddr, sport=0, seq=TCP_SEQ): argument
79 if sport == 0:
80 sport = RandomPort()
[all …]
Dsock_diag_test.py50 sport, dport = (socketpair[0].getsockname()[1],
52 socketpairs[(addr, sport, dport)] = socketpair
83 src, sport = s.getsockname()[0:2]
85 self.assertEqual(diag_msg.id.sport, sport)
126 sport = diag_msg.id.sport
128 if (addr, sport, dport) in self.socketpairs:
129 cookies[(addr, sport, dport)] = diag_msg.id.cookie
130 elif (addr, dport, sport) in self.socketpairs:
131 cookies[(addr, sport, dport)] = diag_msg.id.cookie
190 (sock_diag.INET_DIAG_BC_S_GE, 1, 5, diag_msg.id.sport),
[all …]
Dmultinetwork_test.py117 sport=None, seq=None)
132 desc, expected = packets.UDP(version, myaddr, dstaddr, sport=None)
152 inner = str(packets.UDP(inner_version, inner_src, inner_dst, sport=None)[1])
227 sport = packets.RandomPort()
228 s.bind((unspec, sport))
230 desc, expected = packets.UDP(version, unspec, dstaddr, sport)
291 sport = s.getsockname()[1]
299 scapy.UDP(sport=sport, dport=53) /
330 sport = s.getsockname()[1]
334 sport=sport)
[all …]
Dmultinetwork_base.py534 if expectedudp.sport is None:
535 actualudp.sport = None
551 if expectedtcp.sport is None:
552 actualtcp.sport = None
Dsock_diag.py287 src, sport = s.getsockname()[:2]
298 sock_id = InetDiagSockId((sport, dport, src, dst, iface, "\x00" * 8))
/system/core/libnetutils/
Dpacket.h22 uint32_t saddr, uint32_t daddr, uint32_t sport, uint32_t dport);
Dpacket.c91 uint32_t saddr, uint32_t daddr, uint32_t sport, uint32_t dport) in send_packet() argument
114 udp.source = htons(sport); in send_packet()