README

mokomoking2501/profinet_master/snmp does not have a README file

#
Asn1Tlv

#
SnmpMessage

pub(all) struct SnmpMessage {
version : Int
community : String
pdu_type : Byte
request_id : Int
error_status : Int
error_index : Int
varbinds : Array[VarBind]
} derive(Eq,
Debug
)

SNMP v1 message model.

#
SnmpValue

pub(all) enum SnmpValue {
Null
IntVal(Int)
OctetString(Bytes)
OidVal(String)
} derive(Eq,
Debug
)

SNMP value types (simplified).

#
VarBind

pub(all) struct VarBind {
oid : String
value : SnmpValue
} derive(Eq,
Debug
)

SNMP variable binding.

#
asn1_integer

let asn1_integer : Byte

#
asn1_null

let asn1_null : Byte

#
asn1_octet_string

let asn1_octet_string : Byte

#
asn1_oid

let asn1_oid : Byte

#
asn1_sequence

let asn1_sequence : Byte

ASN.1 tag constants.

#
build_get_next_request

fn build_get_next_request(community : String, request_id : Int, oid : String) -> SnmpMessage

Build a simple SNMP GET-NEXT request for a single OID.

#
build_get_request

fn build_get_request(community : String, request_id : Int, oid : String) -> SnmpMessage

Build a simple SNMP GET request for a single OID.

#
build_set_request

fn build_set_request(community : String, request_id : Int, oid : String, value : SnmpValue) -> SnmpMessage

Build a simple SNMP SET request.

#
encode_oid

fn encode_oid(oid_str : String) -> Bytes

Encode OID string to ASN.1 bytes.

#
encode_snmp_message

fn encode_snmp_message(msg : SnmpMessage) -> Bytes

Encode an SNMP v1 message.

#
format_snmp_message

fn format_snmp_message(msg : SnmpMessage) -> String

Format SNMP message summary.

#
format_snmp_value

fn format_snmp_value(value : SnmpValue) -> String

Format a simplified SNMP value for diagnostics.

#
oid_if_number

let oid_if_number : String

#
oid_lldp_rem_port_id

let oid_lldp_rem_port_id : String

#
oid_lldp_rem_sys_name

let oid_lldp_rem_sys_name : String

LLDP MIB OIDs.

#
oid_sys_contact

let oid_sys_contact : String

#
oid_sys_descr

let oid_sys_descr : String

Well-known PROFINET SNMP OIDs.

#
oid_sys_location

let oid_sys_location : String

#
oid_sys_name

let oid_sys_name : String

#
parse_snmp_message

fn parse_snmp_message(data : Bytes) -> SnmpMessage raise
FrameError

Parse an SNMP v1 message from BER bytes.

#
pdu_type_get

let pdu_type_get : Byte

SNMP v1 PDU types (ASN.1 constructed, context-specific).

#
pdu_type_get_next

let pdu_type_get_next : Byte

#
pdu_type_response

let pdu_type_response : Byte

#
pdu_type_set

let pdu_type_set : Byte

#
snmp_port

let snmp_port : Int

SNMP v1 standard UDP port.

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io