56 #ifndef _SNMP_SNMPMSG_H_ 57 #define _SNMP_SNMPMSG_H_ 67 #ifdef SNMP_PP_NAMESPACE 74 #define SNMP_MSG_OID_SYSUPTIME "1.3.6.1.2.1.1.3.0" 75 #define SNMP_MSG_OID_TRAPID "1.3.6.1.6.3.1.1.4.1.0" 99 const int security_model);
108 pdu, community, version, 0, 0, 0); };
112 int load(
unsigned char *data,
118 int unload(
Pdu &pdu,
123 long int *security_model,
130 {
return unload(pdu, community, version, 0, 0, 0, 0, 0); };
140 {
return load(mpv3, pdu,
"", version, &engine_id, &sec_name, sec_model); }
142 int unloadv3(
Pdu &pdu,
146 long int &security_model,
156 bool valid()
const {
return valid_flag;};
160 unsigned char *
data() {
return databuff; };
164 unsigned long len()
const {
return bufflen; };
173 #ifdef SNMP_PP_NAMESPACE 177 #endif // _SNMP_SNMPMSG_H_ #define MAX_SNMP_PACKET
The maximum size of a message that can be sent or received.
DLLOPT int convertVbToSmival(const Vb &, SmiVALUE *)
The Vb class is the encapsulation of the SNMP variable binding.
int unload(Pdu &pdu, OctetStr &community, snmp_version &version)
DLLOPT void freeSmivalDescriptor(SmiVALUE *)
int load(Pdu &pdu, const OctetStr &community, const snmp_version version)
The SNMPv3 Message Processing Model (v3MP).
snmp_version
The SNMP version to use is passed with this enum.
unsigned long len() const
static bool is_v3_msg(unsigned char *buffer, int length)
Tests if the given buffer contains a SNMPv3-Message.
int loadv3(v3MP *mpv3, Pdu &pdu, const OctetStr &engine_id, const OctetStr &sec_name, const int sec_model, const snmp_version version)