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
2e776b79
Commit
2e776b79
authored
10 years ago
by
Pierre Lalet
Browse files
Options
Downloads
Plain Diff
Merged in samuelreynolds/scapy (pull request #45)
Add COUNTER64 support to asn1 (for snmp v2).
parents
f178e316
d9caf229
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scapy/asn1/asn1.py
+4
-0
4 additions, 0 deletions
scapy/asn1/asn1.py
scapy/asn1/ber.py
+3
-0
3 additions, 0 deletions
scapy/asn1/ber.py
with
7 additions
and
0 deletions
scapy/asn1/asn1.py
+
4
−
0
View file @
2e776b79
...
...
@@ -170,6 +170,7 @@ class ASN1_Class_UNIVERSAL(ASN1_Class):
COUNTER32
=
0x41
GAUGE32
=
0x42
TIME_TICKS
=
0x43
COUNTER64
=
0x46
SEP
=
0x80
class
ASN1_Object_metaclass
(
type
):
...
...
@@ -279,6 +280,9 @@ class ASN1_GAUGE32(ASN1_INTEGER):
class
ASN1_COUNTER32
(
ASN1_INTEGER
):
tag
=
ASN1_Class_UNIVERSAL
.
COUNTER32
class
ASN1_COUNTER64
(
ASN1_INTEGER
):
tag
=
ASN1_Class_UNIVERSAL
.
COUNTER64
class
ASN1_SEQUENCE
(
ASN1_Object
):
tag
=
ASN1_Class_UNIVERSAL
.
SEQUENCE
def
strshow
(
self
,
lvl
=
0
):
...
...
This diff is collapsed.
Click to expand it.
scapy/asn1/ber.py
+
3
−
0
View file @
2e776b79
...
...
@@ -305,6 +305,9 @@ class BERcodec_GAUGE32(BERcodec_INTEGER):
class
BERcodec_COUNTER32
(
BERcodec_INTEGER
):
tag
=
ASN1_Class_UNIVERSAL
.
COUNTER32
class
BERcodec_COUNTER64
(
BERcodec_INTEGER
):
tag
=
ASN1_Class_UNIVERSAL
.
COUNTER64
class
BERcodec_SEQUENCE
(
BERcodec_Object
):
tag
=
ASN1_Class_UNIVERSAL
.
SEQUENCE
@classmethod
...
...
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