62
62
#include <net-snmp/net-snmp-config.h>
63
63
#include <net-snmp/net-snmp-includes.h>
64
64
65
+ #include "snmp_arginfo.h"
66
+
65
67
/* For net-snmp prior to 5.4 */
66
68
#ifndef HAVE_SHUTDOWN_SNMP_LOGGING
67
69
extern netsnmp_log_handler * logh_head ;
@@ -73,12 +75,6 @@ extern netsnmp_log_handler *logh_head;
73
75
}
74
76
#endif
75
77
76
- #define SNMP_VALUE_LIBRARY (0 << 0)
77
- #define SNMP_VALUE_PLAIN (1 << 0)
78
- #define SNMP_VALUE_OBJECT (1 << 1)
79
-
80
- #include "snmp_arginfo.h"
81
-
82
78
typedef struct snmp_session php_snmp_session ;
83
79
84
80
#define PHP_SNMP_ADD_PROPERTIES (a , b ) \
@@ -91,23 +87,6 @@ typedef struct snmp_session php_snmp_session;
91
87
} \
92
88
}
93
89
94
- #define PHP_SNMP_ERRNO_NOERROR 0
95
- #define PHP_SNMP_ERRNO_GENERIC (1 << 1)
96
- #define PHP_SNMP_ERRNO_TIMEOUT (1 << 2)
97
- #define PHP_SNMP_ERRNO_ERROR_IN_REPLY (1 << 3)
98
- #define PHP_SNMP_ERRNO_OID_NOT_INCREASING (1 << 4)
99
- #define PHP_SNMP_ERRNO_OID_PARSING_ERROR (1 << 5)
100
- #define PHP_SNMP_ERRNO_MULTIPLE_SET_QUERIES (1 << 6)
101
- #define PHP_SNMP_ERRNO_ANY ( \
102
- PHP_SNMP_ERRNO_GENERIC | \
103
- PHP_SNMP_ERRNO_TIMEOUT | \
104
- PHP_SNMP_ERRNO_ERROR_IN_REPLY | \
105
- PHP_SNMP_ERRNO_OID_NOT_INCREASING | \
106
- PHP_SNMP_ERRNO_OID_PARSING_ERROR | \
107
- PHP_SNMP_ERRNO_MULTIPLE_SET_QUERIES | \
108
- PHP_SNMP_ERRNO_NOERROR \
109
- )
110
-
111
90
ZEND_DECLARE_MODULE_GLOBALS (snmp )
112
91
static PHP_GINIT_FUNCTION (snmp );
113
92
0 commit comments