Lines Matching refs:version

46 def _GetIpLayer(version):  argument
47 return {4: scapy.IP, 5: scapy.IP, 6: scapy.IPv6}[version]
57 def UDP(version, srcaddr, dstaddr, sport=0): argument
58 ip = _GetIpLayer(version)
62 return ("UDPv%d packet" % version,
66 def UDPWithOptions(version, srcaddr, dstaddr, sport=0, lifetime=39): argument
67 if version == 4:
76 return ("UDPv%d packet with options" % version, packet)
78 def SYN(dport, version, srcaddr, dstaddr, sport=0, seq=-1): argument
79 ip = _GetIpLayer(version)
90 def RST(version, srcaddr, dstaddr, packet): argument
91 ip = _GetIpLayer(version)
101 def SYNACK(version, srcaddr, dstaddr, packet): argument
102 ip = _GetIpLayer(version)
110 def ACK(version, srcaddr, dstaddr, packet, payload=""): argument
111 ip = _GetIpLayer(version)
124 def FIN(version, srcaddr, dstaddr, packet): argument
125 ip = _GetIpLayer(version)
135 def GRE(version, srcaddr, dstaddr, proto, packet): argument
136 if version == 4:
143 def ICMPPortUnreachable(version, srcaddr, dstaddr, packet): argument
144 if version == 4:
155 def ICMPPacketTooBig(version, srcaddr, dstaddr, packet): argument
156 if version == 4:
172 def ICMPEcho(version, srcaddr, dstaddr): argument
173 ip = _GetIpLayer(version)
174 icmp = {4: scapy.ICMP, 6: scapy.ICMPv6EchoRequest}[version]
178 return ("ICMPv%d echo" % version, packet)
180 def ICMPReply(version, srcaddr, dstaddr, packet): argument
181 ip = _GetIpLayer(version)
184 icmp = {4: icmpv4_reply, 6: scapy.ICMPv6EchoReply}[version]
188 if version == 4 or net_test.LINUX_VERSION >= (3, 14):
190 return ("ICMPv%d echo reply" % version, packet)