SM0 She11
Path:
/
/
usr
/
include
/
net-snmp
/
library
Full Path (server): /usr/include/net-snmp/library
Create Fil3
Upl04d Fil3
📄 README
[E]
[D]
[R]
📄 asn1.h
[E]
[D]
[R]
📄 callback.h
[E]
[D]
[R]
📄 cert_util.h
[E]
[D]
[R]
📄 check_varbind.h
[E]
[D]
[R]
📄 container.h
[E]
[D]
[R]
📄 container_binary_array.h
[E]
[D]
[R]
📄 container_iterator.h
[E]
[D]
[R]
📄 container_list_ssll.h
[E]
[D]
[R]
📄 container_null.h
[E]
[D]
[R]
📄 data_list.h
[E]
[D]
[R]
📄 default_store.h
[E]
[D]
[R]
📄 dir_utils.h
[E]
[D]
[R]
📄 factory.h
[E]
[D]
[R]
📄 fd_event_manager.h
[E]
[D]
[R]
📄 file_utils.h
[E]
[D]
[R]
📄 getopt.h
[E]
[D]
[R]
📄 int64.h
[E]
[D]
[R]
📄 keytools.h
[E]
[D]
[R]
📄 large_fd_set.h
[E]
[D]
[R]
📄 lcd_time.h
[E]
[D]
[R]
📄 md5.h
[E]
[D]
[R]
📄 mib.h
[E]
[D]
[R]
📄 mt_support.h
[E]
[D]
[R]
📄 oid.h
[E]
[D]
[R]
📄 oid_stash.h
[E]
[D]
[R]
📄 parse.h
[E]
[D]
[R]
📄 read_config.h
[E]
[D]
[R]
📄 scapi.h
[E]
[D]
[R]
📄 snmp-tc.h
[E]
[D]
[R]
📄 snmp.h
[E]
[D]
[R]
📄 snmpAliasDomain.h
[E]
[D]
[R]
📄 snmpCallbackDomain.h
[E]
[D]
[R]
📄 snmpDTLSUDPDomain.h
[E]
[D]
[R]
📄 snmpIPv4BaseDomain.h
[E]
[D]
[R]
📄 snmpIPv6BaseDomain.h
[E]
[D]
[R]
📄 snmpSocketBaseDomain.h
[E]
[D]
[R]
📄 snmpTCPBaseDomain.h
[E]
[D]
[R]
📄 snmpTCPDomain.h
[E]
[D]
[R]
📄 snmpTCPIPv6Domain.h
[E]
[D]
[R]
📄 snmpTLSBaseDomain.h
[E]
[D]
[R]
📄 snmpTLSTCPDomain.h
[E]
[D]
[R]
📄 snmpUDPBaseDomain.h
[E]
[D]
[R]
📄 snmpUDPDomain.h
[E]
[D]
[R]
📄 snmpUDPIPv4BaseDomain.h
[E]
[D]
[R]
📄 snmpUDPIPv6Domain.h
[E]
[D]
[R]
📄 snmpUnixDomain.h
[E]
[D]
[R]
📄 snmp_alarm.h
[E]
[D]
[R]
📄 snmp_api.h
[E]
[D]
[R]
📄 snmp_assert.h
[E]
[D]
[R]
📄 snmp_client.h
[E]
[D]
[R]
📄 snmp_debug.h
[E]
[D]
[R]
📄 snmp_enum.h
[E]
[D]
[R]
📄 snmp_impl.h
[E]
[D]
[R]
📄 snmp_logging.h
[E]
[D]
[R]
📄 snmp_parse_args.h
[E]
[D]
[R]
📄 snmp_secmod.h
[E]
[D]
[R]
📄 snmp_service.h
[E]
[D]
[R]
📄 snmp_transport.h
[E]
[D]
[R]
📄 snmptsm.h
[E]
[D]
[R]
📄 snmpusm.h
[E]
[D]
[R]
📄 snmpv3-security-includes.h
[E]
[D]
[R]
📄 snmpv3.h
[E]
[D]
[R]
📄 system.h
[E]
[D]
[R]
📄 text_utils.h
[E]
[D]
[R]
📄 tools.h
[E]
[D]
[R]
📄 transform_oids.h
[E]
[D]
[R]
📄 types.h
[E]
[D]
[R]
📄 ucd_compat.h
[E]
[D]
[R]
📄 vacm.h
[E]
[D]
[R]
📄 winpipe.h
[E]
[D]
[R]
📄 winservice.h
[E]
[D]
[R]
Editing: snmp_assert.h
#ifndef SNMP_ASSERT_H #define SNMP_ASSERT_H #ifdef NETSNMP_USE_ASSERT # include <assert.h> #else # include <net-snmp/library/snmp_logging.h> #endif /* * MACROs don't need extern "C" */ /* * define __STRING for systems (*cough* sun *cough*) that don't have it */ #ifndef __STRING # if defined(__STDC__) || defined(_MSC_VER) # define __STRING(x) #x # else # define __STRING(x) "x" # endif /* __STDC__ */ #endif /* __STRING */ /* * always use assert if requested */ #ifdef NETSNMP_USE_ASSERT /* void netsnmp_assert( int );*/ # define netsnmp_assert(x) assert( x ) # define netsnmp_assert_or_return(x, y) assert( x ) # define netsnmp_assert_or_msgreturn(x, y, z) assert( x ) #else /* * if asserts weren't requested, just log, unless NETSNMP_NO_DEBUGGING specified */ # ifndef NETSNMP_NO_DEBUGGING # ifdef NETSNMP_FUNCTION # define NETSNMP_FUNC_FMT " %s()\n" # define NETSNMP_FUNC_PARAM NETSNMP_FUNCTION # else # define NETSNMP_FUNC_FMT "%c" # define NETSNMP_FUNC_PARAM '\n' # endif # # define netsnmp_assert(x) do { \ if ( x ) \ ; \ else \ snmp_log(LOG_ERR, \ "netsnmp_assert %s failed %s:%d" NETSNMP_FUNC_FMT, \ __STRING(x),__FILE__,__LINE__, \ NETSNMP_FUNC_PARAM); \ }while(0) # define netsnmp_assert_or_return(x, y) do { \ if ( x ) \ ; \ else { \ snmp_log(LOG_ERR, \ "netsnmp_assert %s failed %s:%d" NETSNMP_FUNC_FMT, \ __STRING(x),__FILE__,__LINE__, \ NETSNMP_FUNC_PARAM); \ return y; \ } \ }while(0) # define netsnmp_assert_or_msgreturn(x, y, z) do { \ if ( x ) \ ; \ else { \ snmp_log(LOG_ERR, \ "netsnmp_assert %s failed %s:%d" NETSNMP_FUNC_FMT, \ __STRING(x),__FILE__,__LINE__, \ NETSNMP_FUNC_PARAM); \ snmp_log(LOG_ERR, y); \ return z; \ } \ }while(0) # else /* NO DEBUGGING */ # define netsnmp_assert(x) # define netsnmp_assert_or_return(x, y) do { \ if ( x ) \ ; \ else { \ return y; \ } \ }while(0) # define netsnmp_assert_or_msgreturn(x, y, z) do { \ if ( x ) \ ; \ else { \ return z; \ } \ }while(0) # endif /* NO DEBUGGING */ #endif /* not NETSNMP_USE_ASSERT */ #define netsnmp_static_assert(x) \ do { switch(0) { case (x): case 0: ; } } while(0) /* * EXPERIMENTAL macros. May be removed without warning in future * releases. Use at your own risk * * The series of uppercase letters at or near the end of these macros give * an indication of what they do. The letters used are: * * L : log a message * RN : return NULL * RE : return a specific hardcoded error appropriate for the condition * RV : return user specified value * */ #define netsnmp_malloc_check_LRN(ptr) \ netsnmp_assert_or_return( (ptr) != NULL, NULL) #define netsnmp_malloc_check_LRE(ptr) \ netsnmp_assert_or_return( (ptr) != NULL, SNMPERR_MALLOC) #define netsnmp_malloc_check_LRV(ptr, val) \ netsnmp_assert_or_return( (ptr) != NULL, val) #define netsnmp_require_ptr_LRV( ptr, val ) \ netsnmp_assert_or_return( (ptr) != NULL, val) #endif /* SNMP_ASSERT_H */
Save