From 4420a070599ed04a9ba383c96d5a18831b10aae3 Mon Sep 17 00:00:00 2001 From: Leandro Lisboa Penz Date: Wed, 15 Apr 2020 17:31:24 +0100 Subject: [PATCH] Make oftest compatible with scapy versions above 2.4.0 ARP is no longer transitively exported from scapy.layers.inet, it's only available from where it is defined: scapy.layers.l2. Note: this change maintains compatibility with older versions of scapy. --- src/python/oftest/packet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/oftest/packet.py b/src/python/oftest/packet.py index 919107ef5..e4eb604ce 100644 --- a/src/python/oftest/packet.py +++ b/src/python/oftest/packet.py @@ -22,9 +22,9 @@ LLC = scapy.layers.l2.LLC SNAP = scapy.layers.l2.SNAP Dot1Q = scapy.layers.l2.Dot1Q +ARP = scapy.layers.l2.ARP IP = scapy.layers.inet.IP IPOption = scapy.layers.inet.IPOption -ARP = scapy.layers.inet.ARP TCP = scapy.layers.inet.TCP UDP = scapy.layers.inet.UDP ICMP = scapy.layers.inet.ICMP