From aca656d6f79951f6c402c4f5aaa0f69ffece09c5 Mon Sep 17 00:00:00 2001 From: Guillaume Valadon <guillaume@valadon.net> Date: Mon, 2 Mar 2015 17:23:01 +0100 Subject: [PATCH] Fixes from Pierre comments --HG-- branch : Issue #307 --- scapy/contrib/send.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scapy/contrib/send.py b/scapy/contrib/send.py index 1e1259f1..23f8c1cd 100644 --- a/scapy/contrib/send.py +++ b/scapy/contrib/send.py @@ -8,7 +8,8 @@ # scapy.contrib.description = SEND # scapy.contrib.status = loads -from scapy.all import * +from scapy.packet import * +from scapy.fields import * from scapy.layers.inet6 import icmp6typescls, _ICMPv6NDGuessPayload send_icmp6typescls = { 11: "ICMPv6NDOptCGA", @@ -70,4 +71,5 @@ class ICMPv6NDOptCGA(_ICMPv6NDGuessPayload, Packet): StrLenField("padding", None, length_from = lambda pkt: pkt.padlength) ] if __name__ == "__main__": + from scapy.all import * interact(mydict=globals(), mybanner="SEND add-on") -- GitLab