From e5bc1a2d04e1eec4a086696a59710c18c773ec23 Mon Sep 17 00:00:00 2001
From: Robin Jarry <robin.jarry@6wind.com>
Date: Tue, 10 Jun 2014 16:45:53 +0200
Subject: [PATCH] layers: add ipsec in default layers

Due to the way layers are loaded in Scapy, the __all__ special variable must
not be defined.

--HG--
branch : ipsec
---
 scapy/config.py       | 3 ++-
 scapy/layers/ipsec.py | 1 -
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scapy/config.py b/scapy/config.py
index 836de468..119022d5 100644
--- a/scapy/config.py
+++ b/scapy/config.py
@@ -372,7 +372,8 @@ extensions_paths: path or list of paths where extensions are to be looked for
     netcache = NetCache()
     load_layers = ["l2", "inet", "dhcp", "dns", "dot11", "gprs", "hsrp", "inet6", "ir", "isakmp", "l2tp",
                    "mgcp", "mobileip", "netbios", "netflow", "ntp", "ppp", "radius", "rip", "rtp",
-                   "sebek", "skinny", "smb", "snmp", "tftp", "x509", "bluetooth", "dhcp6", "llmnr", "sctp", "vrrp" ]
+                   "sebek", "skinny", "smb", "snmp", "tftp", "x509", "bluetooth", "dhcp6", "llmnr", "sctp", "vrrp",
+                   "ipsec" ]
     
 
 if not Conf.ipv6_enabled:
diff --git a/scapy/layers/ipsec.py b/scapy/layers/ipsec.py
index ac677ccb..030291dc 100644
--- a/scapy/layers/ipsec.py
+++ b/scapy/layers/ipsec.py
@@ -53,7 +53,6 @@ from scapy.layers.inet import IP
 from scapy.layers.inet6 import IPv6, IPv6ExtHdrHopByHop, IPv6ExtHdrDestOpt, \
     IPv6ExtHdrRouting
 
-__all__ = ['AH', 'ESP', 'SecurityAssociation']
 
 #------------------------------------------------------------------------------
 class AH(Packet):
-- 
GitLab