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
0cb2b407
Commit
0cb2b407
authored
16 years ago
by
Phil
Browse files
Options
Downloads
Patches
Plain Diff
Fixed namespace problem with asn1fields (ticket #140)
parent
6c952a9e
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/asn1fields.py
+3
-1
3 additions, 1 deletion
scapy/asn1fields.py
with
3 additions
and
1 deletion
scapy/asn1fields.py
+
3
−
1
View file @
0cb2b407
...
...
@@ -6,6 +6,8 @@
from
asn1.asn1
import
*
from
asn1.ber
import
*
from
volatile
import
*
from
base_classes
import
BasePacket
#####################
#### ASN1 Fields ####
...
...
@@ -76,7 +78,7 @@ class ASN1F_field(ASN1F_element):
if
type
(
x
)
is
list
:
x
=
x
[:]
for
i
in
xrange
(
len
(
x
)):
if
isinstance
(
x
[
i
],
Packet
):
if
isinstance
(
x
[
i
],
Base
Packet
):
x
[
i
]
=
x
[
i
].
copy
()
return
x
...
...
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