1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//! SNMP constants.
//!
//! Source-gated by `.agents/docs/snmp-rfc-manifest.md`.
/// SNMP message UDP port.
///
/// Source: IANA Service Name and Transport Protocol Port Number Registry row
/// `snmp`/UDP, and RFC 3417 Section 3 for the preferred UDP/IPv4 mapping.
pub const SNMP_PORT: u16 = 161;
/// SNMP notification/trap UDP port.
///
/// Source: IANA Service Name and Transport Protocol Port Number Registry row
/// `snmptrap`/UDP.
pub const SNMP_TRAP_PORT: u16 = 162;
/// GetRequest-PDU context-specific tag number.
///
/// Source: RFC 1157 Section 4.1.2 and RFC 3416 Section 3.
pub const SNMP_PDU_TAG_GET_REQUEST: u8 = 0;
/// GetNextRequest-PDU context-specific tag number.
///
/// Source: RFC 1157 Section 4.1.3 and RFC 3416 Section 3.
pub const SNMP_PDU_TAG_GET_NEXT_REQUEST: u8 = 1;
/// Response/GetResponse PDU context-specific tag number.
///
/// Source: RFC 1157 Section 4.1.4 and RFC 3416 Section 3.
pub const SNMP_PDU_TAG_RESPONSE: u8 = 2;
/// SetRequest-PDU context-specific tag number.
///
/// Source: RFC 1157 Section 4.1.5 and RFC 3416 Section 3.
pub const SNMP_PDU_TAG_SET_REQUEST: u8 = 3;
/// SNMPv1 Trap-PDU context-specific tag number.
///
/// Source: RFC 1157 Section 4.1.6.
pub const SNMP_PDU_TAG_TRAP: u8 = 4;
/// GetBulkRequest-PDU context-specific tag number.
///
/// Source: RFC 3416 Section 3 and Section 4.2.3.
pub const SNMP_PDU_TAG_GET_BULK_REQUEST: u8 = 5;
/// InformRequest-PDU context-specific tag number.
///
/// Source: RFC 3416 Section 3 and Section 4.2.7.
pub const SNMP_PDU_TAG_INFORM_REQUEST: u8 = 6;
/// SNMPv2-Trap-PDU context-specific tag number.
///
/// Source: RFC 3416 Section 3 and Section 4.2.6.
pub const SNMP_PDU_TAG_TRAP_V2: u8 = 7;
/// Report-PDU context-specific tag number.
///
/// Source: RFC 3416 Section 3; usage is supplied by administrative framework
/// sources such as RFC 3412.
pub const SNMP_PDU_TAG_REPORT: u8 = 8;