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
This commit is contained in:
Robin Jarry 2014-06-10 16:45:53 +02:00
parent 5a266059bd
commit e5bc1a2d04
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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):