Typo on array size remained.
And IPAddress operator proved to be unneeded. Now killed completely.
#define SNMP_ERR_WRONGTYPE (0x7)
#define SNMP_ERR_WRONGLENGTH (0x8)
#define SNMP_ERR_WRONGENCODING (0x9)
+/* 0x0A - 0x0F undefined */
#define SNMP_ERR_WRONGVALUE (0x10)
#define SNMP_ERR_NOCREATION (0x11)
#define SNMP_ERR_INCONSISTENTVALUE (0x12)
#include "snmp_error.h"
-static const char *error_string[19] = {
+static const char *error_string[25] = {
+ /* 0x00 - 0x05 */
"No Error",
"Response message would have been too large.",
"There is no such variable name in this MIB.",
"This variable is read only",
"A general failure occured",
+ /* 0x06 - 0x09 */
/* SNMPv2 Errors */
"NOACCESS",
"WRONGTYPE",
"WRONGLENGTH",
"WRONGENCODING",
-/* 0xA */"UNDEFINED",
-/* 0xb */"UNDEFINED",
-/* 0xC */"UNDEFINED",
-/* 0xD */"UNDEFINED",
-/* 0xE */"UNDEFINED",
-/* 0xF */"UNDEFINED",
+ /* 0x0A - 0x0F */
+ "UNDEFINED",
+ "UNDEFINED",
+ "UNDEFINED",
+ "UNDEFINED",
+ "UNDEFINED",
+ "UNDEFINED",
+ /* 0x10 - 0x18 */
"WRONGVALUE",
"NOCREATION",
"INCONSISTENTVALUE",
operator=(s);
}
-IpAddress& IpAddress::operator =(IpAddress *s)
-{
- if (!s) return *this;
- IpAddress *tmp = static_cast<IpAddress*>(s);
- return operator=(*tmp);
-}
-
IpAddress::IpAddress(const struct hostent &s)
{
SetEmpty();
/** @name Assignment Operators */
/*@{*/
IpAddress& operator =(const IpAddress &s);
- IpAddress& operator =(IpAddress *s);
IpAddress& operator =(struct sockaddr_in const &s);
IpAddress& operator =(struct sockaddr_storage const &s);
IpAddress& operator =(struct in_addr const &s);