|
SNMPv3 Security Model values |
| #define | SNMP_SECURITY_MODEL_ANY 0 |
| | Not used in SNMP++.
|
| #define | SNMP_SECURITY_MODEL_V1 1 |
| | Can be used for SNMPv1 only.
|
| #define | SNMP_SECURITY_MODEL_V2 2 |
| | Can be used for SNMPv2 only.
|
| #define | SNMP_SECURITY_MODEL_USM 3 |
| | Can be used for SNMPv3 only.
|
Error codes (storing engineBoots) |
These values are returned by getBootCounter() and saveBootCounter().
|
| #define | SNMPv3_OK 0 |
| | No error.
|
| #define | SNMPv3_NO_ENTRY_ERROR -1 |
| | No line for the engine id found.
|
| #define | SNMPv3_FILEOPEN_ERROR -2 |
| | Unable to open file.
|
| #define | SNMPv3_TOO_LONG_ERROR -3 |
| | The given engineID is too long.
|
| #define | SNMPv3_FILE_ERROR -4 |
| | The given file contains a wrong line.
|
| #define | SNMPv3_FILECREATE_ERROR -5 |
| | The File could not be created.
|
| #define | SNMPv3_FILERENAME_ERROR -6 |
| | Error renaming the temporary file.
|
Defines |
| #define | TRUE 1 |
| #define | FALSE 0 |
| #define | debughexprintf(db_level, data, len) debughexcprintf(db_level, NULL, data, len); |
| | Wrapper for debughexcprintf() without comment.
|
| #define | V3MAXMESSAGESIZE SNMP_MSG_LENGTH |
| #define | MAXLENGTH_ENGINEID 32 |
| #define | MAXLENGTH_CONTEXT_NAME 32 |
| #define | MAXLENGTH_FILENAME 255 |
| #define | MAXLENGTH_GLOBALDATA 42 |
| #define | oidV3SnmpEngine "1.3.6.1.6.3.10.2.1" |
| #define | oidV3SnmpEngineID "1.3.6.1.6.3.10.2.1.1.0" |
| #define | oidV3SnmpEngineBoots "1.3.6.1.6.3.10.2.1.2.0" |
| #define | oidV3SnmpEngineTime "1.3.6.1.6.3.10.2.1.3.0" |
| #define | oidV3SnmpEngineMaxMessageSize "1.3.6.1.6.3.10.2.1.4.0" |
| #define | oidSnmpUnavailableContexts "1.3.6.1.6.3.12.1.4.0" |
| #define | oidSnmpUnknownContexts "1.3.6.1.6.3.12.1.5.0" |
| #define | SecurityModel_any SNMP_SECURITY_MODEL_ANY |
| #define | SecurityModel_v1 SNMP_SECURITY_MODEL_V1 |
| #define | SecurityModel_v2 SNMP_SECURITY_MODEL_V2 |
| #define | SecurityModel_USM SNMP_SECURITY_MODEL_USM |
Functions |
| DLLOPT void | debug_set_logfile (const char *filename) |
| | Set the logfile for logging output.
|
| DLLOPT void | debug_set_level (const int db_level) |
| | Set the amount of log messages you want to get.
|
| DLLOPT void | debugprintf (int db_level, const char *format,...) |
| | SNMP++ logging function.
|
| DLLOPT void | debughexcprintf (int db_level, const char *comment, const unsigned char *data, const unsigned int len) |
| | SNMP++ logging function for hex strings.
|
| DLLOPT int | unsignedCharCompare (const unsigned char *str1, const long int ptr1len, const unsigned char *str2, const long int ptr2len) |
| | Compare two strings.
|
| DLLOPT unsigned char * | v3strcpy (const unsigned char *src, const int srclen) |
| | String copy function.
|
| DLLOPT void | encodeString (const unsigned char *in, const int in_length, char *out) |
| | Encode the given string into the output buffer.
|
| DLLOPT void | decodeString (const unsigned char *in, const int in_length, char *out) |
| | Decode the given encoded string into the output buffer.
|
| DLLOPT int | getBootCounter (const char *fileName, const OctetStr &engineId, unsigned int &boot) |
| | Read the bootCounter of the given engineID stored in the given file.
|
| DLLOPT int | saveBootCounter (const char *fileName, const OctetStr &engineId, const unsigned int boot) |
| | Store the bootCounter of the given engineID in the given file.
|