You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
560 B
19 lines
560 B
#
|
|
# This file is part of pysnmp software.
|
|
#
|
|
# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
|
|
# License: http://snmplabs.com/pysnmp/license.html
|
|
#
|
|
from pyasn1.type import univ, namedtype, namedval
|
|
from pysnmp.proto import rfc1905
|
|
|
|
version = univ.Integer(namedValues=namedval.NamedValues(('version-2c', 1)))
|
|
|
|
|
|
class Message(univ.Sequence):
|
|
componentType = namedtype.NamedTypes(
|
|
namedtype.NamedType('version', version),
|
|
namedtype.NamedType('community', univ.OctetString()),
|
|
namedtype.NamedType('data', rfc1905.PDUs())
|
|
)
|