Home
last modified time | relevance | path

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

/system/extras/tests/net_test/
Dmultinetwork_test.py90 def UDP(cls, version, srcaddr, dstaddr, sport=0): argument
93 if sport == 0:
94 sport = cls.RandomPort()
97 scapy.UDP(sport=sport, dport=53) / UDP_PAYLOAD)
100 def UDPWithOptions(cls, version, srcaddr, dstaddr, sport=0): argument
103 scapy.UDP(sport=sport, dport=53) /
108 scapy.UDP(sport=sport, dport=53) /
113 def SYN(cls, dport, version, srcaddr, dstaddr, sport=0, seq=TCP_SEQ): argument
115 if sport == 0:
116 sport = cls.RandomPort()
[all …]
Dmultinetwork_base.py512 if expectedudp.sport is None:
513 actualudp.sport = None
530 if expectedtcp.sport is None:
531 actualtcp.sport = None
/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()