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
f18a8f5c
Commit
f18a8f5c
authored
8 years ago
by
Pierre LALET
Browse files
Options
Downloads
Plain Diff
Fix conflicts from
https://github.com/Romounet/scapy:srfix
+ cleanup
parents
3579d736
97c926f9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scapy/sendrecv.py
+5
-3
5 additions, 3 deletions
scapy/sendrecv.py
with
5 additions
and
3 deletions
scapy/sendrecv.py
+
5
−
3
View file @
f18a8f5c
...
...
@@ -10,7 +10,8 @@ Functions to send and receive packets.
import
errno
import
cPickle
,
os
,
sys
,
time
,
subprocess
import
itertools
from
select
import
select
from
select
import
select
,
error
as
select_error
from
scapy.arch.consts
import
DARWIN
,
FREEBSD
,
OPENBSD
from
scapy.data
import
*
from
scapy.config
import
conf
...
...
@@ -140,8 +141,9 @@ def sndrcv(pks, pkt, timeout = None, inter = 0, verbose=None, chainCC=0, retry=0
inp
=
[]
try
:
inp
,
out
,
err
=
select
(
inmask
,[],[],
remaintime
)
except
IOError
,
exc
:
if
exc
.
errno
!=
errno
.
EINTR
:
except
(
IOError
,
select_error
)
as
exc
:
# select.error has no .errno attribute
if
exc
.
args
[
0
]
!=
errno
.
EINTR
:
raise
if
len
(
inp
)
==
0
:
break
...
...
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