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
84a76140
Commit
84a76140
authored
16 years ago
by
Phil
Browse files
Options
Downloads
Patches
Plain Diff
Made send(string) work again
parent
c53f4314
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/sendrecv.py
+2
-0
2 additions, 0 deletions
scapy/sendrecv.py
with
2 additions
and
0 deletions
scapy/sendrecv.py
+
2
−
0
View file @
84a76140
...
@@ -204,6 +204,8 @@ def sndrcv(pks, pkt, timeout = 2, inter = 0, verbose=None, chainCC=0, retry=0, m
...
@@ -204,6 +204,8 @@ def sndrcv(pks, pkt, timeout = 2, inter = 0, verbose=None, chainCC=0, retry=0, m
def
__gen_send
(
s
,
x
,
inter
=
0
,
loop
=
0
,
count
=
None
,
verbose
=
None
,
*
args
,
**
kargs
):
def
__gen_send
(
s
,
x
,
inter
=
0
,
loop
=
0
,
count
=
None
,
verbose
=
None
,
*
args
,
**
kargs
):
if
type
(
x
)
is
str
:
x
=
Raw
(
load
=
x
)
if
not
isinstance
(
x
,
Gen
):
if
not
isinstance
(
x
,
Gen
):
x
=
SetGen
(
x
)
x
=
SetGen
(
x
)
if
verbose
is
None
:
if
verbose
is
None
:
...
...
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