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
36869f46
Commit
36869f46
authored
16 years ago
by
Phil
Browse files
Options
Downloads
Patches
Plain Diff
Moved warning() into error.py
parent
33c3b1a1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
scapy/error.py
+5
-0
5 additions, 0 deletions
scapy/error.py
scapy/main.py
+1
-0
1 addition, 0 deletions
scapy/main.py
scapy/plist.py
+1
-0
1 addition, 0 deletions
scapy/plist.py
scapy/route.py
+1
-0
1 addition, 0 deletions
scapy/route.py
with
8 additions
and
0 deletions
scapy/error.py
+
5
−
0
View file @
36869f46
...
@@ -45,6 +45,11 @@ log_runtime.addFilter(ScapyFreqFilter())
...
@@ -45,6 +45,11 @@ log_runtime.addFilter(ScapyFreqFilter())
log_interactive
=
logging
.
getLogger
(
"
scapy.interactive
"
)
# logs in interactive functions
log_interactive
=
logging
.
getLogger
(
"
scapy.interactive
"
)
# logs in interactive functions
log_loading
=
logging
.
getLogger
(
"
scapy.loading
"
)
# logs when loading scapy
log_loading
=
logging
.
getLogger
(
"
scapy.loading
"
)
# logs when loading scapy
def
warning
(
x
):
log_runtime
.
warning
(
x
)
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
log_scapy
.
setLevel
(
1
)
log_scapy
.
setLevel
(
1
)
...
...
This diff is collapsed.
Click to expand it.
scapy/main.py
+
1
−
0
View file @
36869f46
from
__future__
import
generators
from
__future__
import
generators
import
os
,
sys
import
os
,
sys
from
error
import
*
DEFAULT_CONFIG_FILE
=
os
.
path
.
join
(
os
.
environ
[
"
HOME
"
],
"
.scapy_startup.py
"
)
DEFAULT_CONFIG_FILE
=
os
.
path
.
join
(
os
.
environ
[
"
HOME
"
],
"
.scapy_startup.py
"
)
...
...
This diff is collapsed.
Click to expand it.
scapy/plist.py
+
1
−
0
View file @
36869f46
import
os
,
socket
import
os
,
socket
from
config
import
conf
from
config
import
conf
from
error
import
warning
from
base_classes
import
BasePacket
,
BasePacketList
from
base_classes
import
BasePacket
,
BasePacketList
#############
#############
...
...
This diff is collapsed.
Click to expand it.
scapy/route.py
+
1
−
0
View file @
36869f46
...
@@ -2,6 +2,7 @@ import socket
...
@@ -2,6 +2,7 @@ import socket
from
arch
import
read_routes
from
arch
import
read_routes
from
utils
import
atol
from
utils
import
atol
from
config
import
conf
from
config
import
conf
from
error
import
warning
##############################
##############################
## Routing/Interfaces stuff ##
## Routing/Interfaces stuff ##
...
...
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