Lines Matching +full:1 +full:v2
18 * 1. Redistributions of source code must retain the above copyright
45 #define BSNMP_MAJOR 1
50 #define SNMP_CONTEXT_NAME_SIZ (32 + 1)
64 /* v2 additions */
90 SNMP_V1 = 1,
96 #define SNMP_MPM_SNMP_V2c 1
99 #define SNMP_ADM_STR32_SIZ (32 + 1)
112 SNMP_SECMODEL_SNMPv1 = 1,
119 SNMP_noAuthNoPriv = 1,
132 SNMP_PRIV_DES = 1,
153 char community[SNMP_COMMUNITY_MAXLEN + 1];
203 #define SNMP_PDU_GETNEXT 1
207 #define SNMP_PDU_GETBULK 5 /* v2 */
208 #define SNMP_PDU_INFORM 6 /* v2 */
209 #define SNMP_PDU_TRAP2 7 /* v2 */
210 #define SNMP_PDU_REPORT 8 /* v2 */
213 #define SNMP_ERR_TOOBIG 1
218 #define SNMP_ERR_NO_ACCESS 6 /* v2 */
219 #define SNMP_ERR_WRONG_TYPE 7 /* v2 */
220 #define SNMP_ERR_WRONG_LENGTH 8 /* v2 */
221 #define SNMP_ERR_WRONG_ENCODING 9 /* v2 */
222 #define SNMP_ERR_WRONG_VALUE 10 /* v2 */
223 #define SNMP_ERR_NO_CREATION 11 /* v2 */
224 #define SNMP_ERR_INCONS_VALUE 12 /* v2 */
225 #define SNMP_ERR_RES_UNAVAIL 13 /* v2 */
226 #define SNMP_ERR_COMMIT_FAILED 14 /* v2 */
227 #define SNMP_ERR_UNDO_FAILED 15 /* v2 */
228 #define SNMP_ERR_AUTH_ERR 16 /* v2 */
229 #define SNMP_ERR_NOT_WRITEABLE 17 /* v2 */
230 #define SNMP_ERR_INCONS_NAME 18 /* v2 */
233 #define SNMP_TRAP_WARMSTART 1
283 #define TRUTH_MK(F) ((F) ? 1 : 2)
284 #define TRUTH_GET(T) (((T) == 1) ? 1 : 0)
285 #define TRUTH_OK(T) ((T) == 1 || (T) == 2)