6790812000-12-05Honza Petrous // // snmp_globals.h //
299ee32014-06-25Martin Nilsson #define ASN1_CONTEXT_SEQUENCE(T,A) Protocols.LDAP.ldap_privates.asn1_factory(Standards.ASN1.Types.Sequence, 2, T, A)
6790812000-12-05Honza Petrous #define SNMP_DEFAULT_PORT 161 #define SNMP_DEFAULT_TRAPPORT 162 #define SNMP_DEFAULT_HOST "127.0.0.1" #define SNMP_DEFAULT_LOCHOST "0.0.0.0" #define SNMP_DEFAULT_COMMUNITY "public" #define SNMP_DEFAULT_VERSION 1 #define SNMP_MINMAXOCTETS_V1 484 // from RFC1157 #define SNMP_SUCCESS 0 #define SNMP_SEND_ERROR 1
700e272002-12-04H. William Welliver III #define SNMP_REQUEST_GET 0 #define SNMP_REQUEST_GETNEXT 1 #define SNMP_REQUEST_GET_RESPONSE 2 #define SNMP_REQUEST_SET 3 #define SNMP_REQUEST_TRAP 4
6790812000-12-05Honza Petrous // debug #ifdef DEBUG_PIKE_PROTOCOL_SNMP
2f806e2005-11-26Martin Nilsson #define DWRITE(X,Y ...) werror("Protocols.SNMP: "+X, Y) #define ERROR(X) error(X)
6790812000-12-05Honza Petrous #else
2f806e2005-11-26Martin Nilsson #define DWRITE(X,Y ...) #define ERROR(X)
6790812000-12-05Honza Petrous #endif