SNMP 2.0.0
|
Helper struct to handle trap PDU. More...
#include <src/BER.h>
Public Types | |
enum | : uint8_t { ColdStart , WarmStart , LinkDown , LinkUp , AuthenticationFailure , EGPNeighborLoss , EnterpriseSpecific } |
Enumerates all possible generic trap codes. More... | |
Public Member Functions | |
Trap () | |
Initializes to default values. | |
Public Attributes | |
const char * | _enterprise |
IPAddress | _agentAddr |
uint8_t | _genericTrap |
uint8_t | _specificTrap |
uint32_t | _timeStamp |
anonymous enum : uint8_t |
|
inline |
Initializes to default values.
Definition at line 145 of file BER.h.
References _enterprise, _genericTrap, _specificTrap, _timeStamp, and ColdStart.
IPAddress SNMP::Trap::_agentAddr |
Network address of the agent.
Definition at line 155 of file BER.h.
Referenced by SNMP::Message::build(), SNMP::Message::parse(), and SNMP::Message::setAgentAddress().
const char* SNMP::Trap::_enterprise |
Enterprise OID.
Definition at line 153 of file BER.h.
Referenced by SNMP::Message::build(), SNMP::Message::parse(), SNMP::Message::setEnterprise(), and Trap().
uint8_t SNMP::Trap::_genericTrap |
Generic trap code.
Definition at line 157 of file BER.h.
Referenced by SNMP::Message::build(), SNMP::Message::parse(), SNMP::Message::setTrap(), and Trap().
uint8_t SNMP::Trap::_specificTrap |
Specific trap code.
Definition at line 159 of file BER.h.
Referenced by SNMP::Message::build(), SNMP::Message::parse(), SNMP::Message::setTrap(), and Trap().
uint32_t SNMP::Trap::_timeStamp |
Time elapsed since device startup.
Definition at line 161 of file BER.h.
Referenced by SNMP::Message::parse(), and Trap().