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
ac6dd4fe
Commit
ac6dd4fe
authored
8 years ago
by
Pierre LALET
Browse files
Options
Downloads
Patches
Plain Diff
Get constant values from "consts" since it is no longer in arch
parent
ccae4a2c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scapy/utils.py
+2
-3
2 additions, 3 deletions
scapy/utils.py
with
2 additions
and
3 deletions
scapy/utils.py
+
2
−
3
View file @
ac6dd4fe
...
...
@@ -18,12 +18,11 @@ import warnings
warnings
.
filterwarnings
(
"
ignore
"
,
"
tempnam
"
,
RuntimeWarning
,
__name__
)
from
scapy.config
import
conf
from
scapy.consts
import
DARWIN
,
WINDOWS
from
scapy.data
import
MTU
from
scapy.error
import
log_runtime
,
log_loading
,
log_interactive
,
Scapy_Exception
from
scapy.base_classes
import
BasePacketList
WINDOWS
=
sys
.
platform
.
startswith
(
"
win32
"
)
###########
## Tools ##
###########
...
...
@@ -1148,7 +1147,7 @@ u'64'
stdout
=
subprocess
.
PIPE
if
dump
or
getfd
else
None
,
stderr
=
open
(
os
.
devnull
),
)
elif
sys
.
platform
.
startswith
(
"
darwin
"
)
:
elif
DARWIN
:
# Tcpdump cannot read from stdin, see
# <http://apple.stackexchange.com/questions/152682/>
tmpfile
=
tempfile
.
NamedTemporaryFile
(
delete
=
False
)
...
...
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