• Home
  • Raw
  • Download

Lines Matching refs:scapy

19 from scapy import all as scapy  unknown
47 return {4: scapy.IP, 5: scapy.IP, 6: scapy.IPv6}[version]
50 if isinstance(packet, scapy.IPv6):
52 elif isinstance(packet, scapy.IP):
64 scapy.UDP(sport=sport, dport=53) / UDP_PAYLOAD)
68 packet = (scapy.IP(src=srcaddr, dst=dstaddr, ttl=lifetime, tos=0x83) /
69 scapy.UDP(sport=sport, dport=53) /
72 packet = (scapy.IPv6(src=srcaddr, dst=dstaddr,
74 scapy.UDP(sport=sport, dport=53) /
86 scapy.TCP(sport=sport, dport=dport,
96 scapy.TCP(sport=original.dport, dport=original.sport,
106 scapy.TCP(sport=original.dport, dport=original.sport,
119 scapy.TCP(sport=original.dport, dport=original.sport,
131 scapy.TCP(sport=original.dport, dport=original.sport,
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)
140 packet = ip / scapy.GRE(proto=proto) / packet
148 scapy.IP(src=srcaddr, dst=dstaddr, proto=1, tos=0xc0) /
149 scapy.ICMPerror(type=3, code=3) / packet)
152 scapy.IPv6(src=srcaddr, dst=dstaddr) /
153 scapy.ICMPv6DestUnreach(code=4) / packet)
158 pkt = (scapy.IP(src=srcaddr, dst=dstaddr, proto=1) /
159 scapy.ICMPerror(type=3, code=4) / str(packet)[:64])
162 if hasattr(scapy.ICMP, "nexthopmtu"):
163 pkt[scapy.ICMPerror].nexthopmtu = PTB_MTU
165 pkt[scapy.ICMPerror].unused = PTB_MTU
169 scapy.IPv6(src=srcaddr, dst=dstaddr) /
170 scapy.ICMPv6PacketTooBig(mtu=PTB_MTU) / str(packet)[:1232])
174 icmp = {4: scapy.ICMP, 6: scapy.ICMPv6EchoRequest}[version]
183 icmpv4_reply = lambda **kwargs: scapy.ICMP(type=0, **kwargs)
184 icmp = {4: icmpv4_reply, 6: scapy.ICMPv6EchoReply}[version]
196 packet = (scapy.IPv6(src=srcaddr, dst=solicited) /
197 scapy.ICMPv6ND_NS(tgt=tgtaddr) /
198 scapy.ICMPv6NDOptSrcLLAddr(lladdr=srcmac))
202 packet = (scapy.IPv6(src=srcaddr, dst=dstaddr) /
203 scapy.ICMPv6ND_NA(tgt=srcaddr, R=0, S=1, O=1) /
204 scapy.ICMPv6NDOptDstLLAddr(lladdr=srcmac))