Lines Matching refs:srcaddr
57 def UDP(version, srcaddr, dstaddr, sport=0): argument
63 ip(src=srcaddr, dst=dstaddr) /
66 def UDPWithOptions(version, srcaddr, dstaddr, sport=0, lifetime=39): argument
68 packet = (scapy.IP(src=srcaddr, dst=dstaddr, ttl=lifetime, tos=0x83) /
72 packet = (scapy.IPv6(src=srcaddr, dst=dstaddr,
78 def SYN(dport, version, srcaddr, dstaddr, sport=0, seq=-1): argument
85 ip(src=srcaddr, dst=dstaddr) /
90 def RST(version, srcaddr, dstaddr, packet): argument
95 ip(src=srcaddr, dst=dstaddr) /
101 def SYNACK(version, srcaddr, dstaddr, packet): argument
105 ip(src=srcaddr, dst=dstaddr) /
110 def ACK(version, srcaddr, dstaddr, packet, payload=""): argument
118 ip(src=srcaddr, dst=dstaddr) /
124 def FIN(version, srcaddr, dstaddr, packet): argument
130 ip(src=srcaddr, dst=dstaddr) /
135 def GRE(version, srcaddr, dstaddr, proto, packet): argument
137 ip = scapy.IP(src=srcaddr, dst=dstaddr, proto=net_test.IPPROTO_GRE)
139 ip = scapy.IPv6(src=srcaddr, dst=dstaddr, nh=net_test.IPPROTO_GRE)
143 def ICMPPortUnreachable(version, srcaddr, dstaddr, packet): argument
148 scapy.IP(src=srcaddr, dst=dstaddr, proto=1, tos=0xc0) /
152 scapy.IPv6(src=srcaddr, dst=dstaddr) /
155 def ICMPPacketTooBig(version, srcaddr, dstaddr, packet): argument
158 pkt = (scapy.IP(src=srcaddr, dst=dstaddr, proto=1) /
169 scapy.IPv6(src=srcaddr, dst=dstaddr) /
172 def ICMPEcho(version, srcaddr, dstaddr): argument
175 packet = (ip(src=srcaddr, dst=dstaddr) /
180 def ICMPReply(version, srcaddr, dstaddr, packet): argument
185 packet = (ip(src=srcaddr, dst=dstaddr) /
192 def NS(srcaddr, tgtaddr, srcmac): argument
196 packet = (scapy.IPv6(src=srcaddr, dst=solicited) /
201 def NA(srcaddr, dstaddr, srcmac): argument
202 packet = (scapy.IPv6(src=srcaddr, dst=dstaddr) /
203 scapy.ICMPv6ND_NA(tgt=srcaddr, R=0, S=1, O=1) /