Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scapy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
external
scapy
Commits
169af6fc
Commit
169af6fc
authored
16 years ago
by
Phil
Browse files
Options
Downloads
Patches
Plain Diff
Ability to choose which layers to load
parent
c50dfdd2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scapy/config.py
+3
-0
3 additions, 0 deletions
scapy/config.py
scapy/layers/all.py
+15
-27
15 additions, 27 deletions
scapy/layers/all.py
with
18 additions
and
27 deletions
scapy/config.py
+
3
−
0
View file @
169af6fc
...
...
@@ -238,6 +238,9 @@ extensions_paths: path or list of paths where extensions are to be looked for
stats_classic_protocols
=
[]
stats_dot11_protocols
=
[]
netcache
=
NetCache
()
load_layers
=
[
"
l2
"
,
"
inet
"
,
"
dhcp
"
,
"
dns
"
,
"
dot11
"
,
"
gprs
"
,
"
hsrp
"
,
"
ip6
"
,
"
ir
"
,
"
isakmp
"
,
"
l2tp
"
,
"
mgcp
"
,
"
mobileip
"
,
"
netbios
"
,
"
netflow
"
,
"
ntp
"
,
"
ppp
"
,
"
radius
"
,
"
rip
"
,
"
rtp
"
,
"
sebek
"
,
"
skinny
"
,
"
smb
"
,
"
snmp
"
,
"
tftp
"
,
"
x509
"
,
"
bluetooth
"
]
conf
=
Conf
()
...
...
This diff is collapsed.
Click to expand it.
scapy/layers/all.py
+
15
−
27
View file @
169af6fc
...
...
@@ -3,30 +3,18 @@
## Copyright (C) Philippe Biondi <phil@secdev.org>
## This program is published under a GPLv2 license
from
l2
import
*
from
inet
import
*
from
dhcp
import
*
from
dns
import
*
from
dot11
import
*
from
gprs
import
*
from
hsrp
import
*
from
ip6
import
*
from
ir
import
*
from
isakmp
import
*
from
l2tp
import
*
from
mgcp
import
*
from
mobileip
import
*
from
netbios
import
*
from
netflow
import
*
from
ntp
import
*
from
ppp
import
*
from
radius
import
*
from
rip
import
*
from
rtp
import
*
from
sebek
import
*
from
skinny
import
*
from
smb
import
*
from
snmp
import
*
from
tftp
import
*
from
x509
import
*
from
bluetooth
import
*
from
scapy.config
import
conf
from
scapy.error
import
log_loading
def
_import_star
(
m
):
mod
=
__import__
(
m
,
globals
(),
locals
())
for
k
,
v
in
mod
.
__dict__
.
iteritems
():
globals
()[
k
]
=
v
for
l
in
conf
.
load_layers
:
log_loading
.
debug
(
"
Loading layer %s
"
%
l
)
_import_star
(
l
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment