MCPcopy Index your code
hub / github.com/secdev/scapy / SNMPvarbind

Class SNMPvarbind

scapy/layers/snmp.py:178–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176
177
178class SNMPvarbind(ASN1_Packet):
179 ASN1_codec = ASN1_Codecs.BER
180 ASN1_root = ASN1F_SEQUENCE(
181 ASN1F_OID("oid", "1.3"),
182 ASN1F_optional(
183 ASN1F_field("value", ASN1_NULL(0))
184 ),
185
186 # exceptions in responses
187 ASN1F_optional(ASN1F_NULL("noSuchObject", None, implicit_tag=0x80)),
188 ASN1F_optional(ASN1F_NULL("noSuchInstance", None, implicit_tag=0x81)),
189 ASN1F_optional(ASN1F_NULL("endOfMibView", None, implicit_tag=0x82)),
190 )
191
192
193class SNMPget(ASN1_Packet):

Callers 1

snmpwalkFunction · 0.85

Calls 6

ASN1F_SEQUENCEClass · 0.90
ASN1F_OIDClass · 0.90
ASN1F_optionalClass · 0.90
ASN1F_fieldClass · 0.90
ASN1_NULLClass · 0.90
ASN1F_NULLClass · 0.90

Tested by

no test coverage detected