Skip to content
Snippets Groups Projects
Commit 9d31f0fe authored by samuelreynolds's avatar samuelreynolds
Browse files

Add COUNTER64 support to asn1 (for snmp v2).

parent 13b1b1c9
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