/usr/lib/python3/dist-packages/pyasn1_modules
NameSizeModeActions
__pycache__/-0755rm
pem.py20520644editdlrm
rfc1155.py26770644editdlrm
rfc1157.py35480644editdlrm
rfc1901.py6400644editdlrm
rfc1902.py36990644editdlrm
rfc1905.py48310644editdlrm
rfc2251.py269250644editdlrm
rfc2314.py13070644editdlrm
rfc2315.py96430644editdlrm
rfc2437.py26170644editdlrm
rfc2459.py500130644editdlrm
rfc2511.py103620644editdlrm
rfc2560.py84000644editdlrm
rfc3279.py59660644editdlrm
rfc3280.py466620644editdlrm
rfc3281.py98600644editdlrm
rfc3412.py19500644editdlrm
rfc3414.py11610644editdlrm
rfc3447.py16050644editdlrm
rfc3852.py201130644editdlrm
rfc4210.py283770644editdlrm
rfc4211.py121100644editdlrm
rfc5208.py14260644editdlrm
rfc5280.py494990644editdlrm
rfc5652.py201130644editdlrm
rfc6402.py150190644editdlrm
__init__.py650644editdlrm
Edit: /usr/lib/python3/dist-packages/pyasn1_modules/rfc1155.py (2677B)
# # This file is part of pyasn1-modules software. # # Copyright (c) 2005-2017, Ilya Etingof # License: http://pyasn1.sf.net/license.html # # SNMPv1 message syntax # # ASN.1 source from: # http://www.ietf.org/rfc/rfc1155.txt # # Sample captures from: # http://wiki.wireshark.org/SampleCaptures/ # from pyasn1.type import constraint from pyasn1.type import namedtype from pyasn1.type import tag from pyasn1.type import univ class ObjectName(univ.ObjectIdentifier): pass class SimpleSyntax(univ.Choice): componentType = namedtype.NamedTypes( namedtype.NamedType('number', univ.Integer()), namedtype.NamedType('string', univ.OctetString()), namedtype.NamedType('object', univ.ObjectIdentifier()), namedtype.NamedType('empty', univ.Null()) ) class IpAddress(univ.OctetString): tagSet = univ.OctetString.tagSet.tagImplicitly( tag.Tag(tag.tagClassApplication, tag.tagFormatSimple, 0) ) subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueSizeConstraint( 4, 4 ) class NetworkAddress(univ.Choice): componentType = namedtype.NamedTypes( namedtype.NamedType('internet', IpAddress()) ) class Counter(univ.Integer): tagSet = univ.Integer.tagSet.tagImplicitly( tag.Tag(tag.tagClassApplication, tag.tagFormatSimple, 1) ) subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueRangeConstraint( 0, 4294967295 ) class Gauge(univ.Integer): tagSet = univ.Integer.tagSet.tagImplicitly( tag.Tag(tag.tagClassApplication, tag.tagFormatSimple, 2) ) subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueRangeConstraint( 0, 4294967295 ) class TimeTicks(univ.Integer): tagSet = univ.Integer.tagSet.tagImplicitly( tag.Tag(tag.tagClassApplication, tag.tagFormatSimple, 3) ) subtypeSpec = univ.Integer.subtypeSpec + constraint.ValueRangeConstraint( 0, 4294967295 ) class Opaque(univ.OctetString): tagSet = univ.OctetString.tagSet.tagImplicitly( tag.Tag(tag.tagClassApplication, tag.tagFormatSimple, 4) ) class ApplicationSyntax(univ.Choice): componentType = namedtype.NamedTypes( namedtype.NamedType('address', NetworkAddress()), namedtype.NamedType('counter', Counter()), namedtype.NamedType('gauge', Gauge()), namedtype.NamedType('ticks', TimeTicks()), namedtype.NamedType('arbitrary', Opaque()) ) class ObjectSyntax(univ.Choice): componentType = namedtype.NamedTypes( namedtype.NamedType('simple', SimpleSyntax()), namedtype.NamedType('application-wide', ApplicationSyntax()) )