Skip to content
Snippets Groups Projects
Commit 2e776b79 authored by Pierre Lalet's avatar Pierre Lalet
Browse files

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
......@@ -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):
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment