SM0 She11
Path:
/
/
usr
/
include
/
net-snmp
/
agent
Full Path (server): /usr/include/net-snmp/agent
Create Fil3
Upl04d Fil3
📄 agent_callbacks.h
[E]
[D]
[R]
📄 agent_handler.h
[E]
[D]
[R]
📄 agent_index.h
[E]
[D]
[R]
📄 agent_module_config.h
[E]
[D]
[R]
📄 agent_read_config.h
[E]
[D]
[R]
📄 agent_registry.h
[E]
[D]
[R]
📄 agent_sysORTable.h
[E]
[D]
[R]
📄 agent_trap.h
[E]
[D]
[R]
📄 all_helpers.h
[E]
[D]
[R]
📄 auto_nlist.h
[E]
[D]
[R]
📄 baby_steps.h
[E]
[D]
[R]
📄 bulk_to_next.h
[E]
[D]
[R]
📄 cache_handler.h
[E]
[D]
[R]
📄 debug_handler.h
[E]
[D]
[R]
📄 ds_agent.h
[E]
[D]
[R]
📄 instance.h
[E]
[D]
[R]
📄 mfd.h
[E]
[D]
[R]
📄 mib_module_config.h
[E]
[D]
[R]
📄 mib_module_includes.h
[E]
[D]
[R]
📄 mib_modules.h
[E]
[D]
[R]
📄 mode_end_call.h
[E]
[D]
[R]
📄 multiplexer.h
[E]
[D]
[R]
📄 net-snmp-agent-includes.h
[E]
[D]
[R]
📄 null.h
[E]
[D]
[R]
📄 old_api.h
[E]
[D]
[R]
📄 read_only.h
[E]
[D]
[R]
📄 row_merge.h
[E]
[D]
[R]
📄 scalar.h
[E]
[D]
[R]
📄 scalar_group.h
[E]
[D]
[R]
📄 serialize.h
[E]
[D]
[R]
📄 set_helper.h
[E]
[D]
[R]
📄 snmp_agent.h
[E]
[D]
[R]
📄 snmp_get_statistic.h
[E]
[D]
[R]
📄 snmp_vars.h
[E]
[D]
[R]
📄 stash_cache.h
[E]
[D]
[R]
📄 stash_to_next.h
[E]
[D]
[R]
📄 struct.h
[E]
[D]
[R]
📄 sysORTable.h
[E]
[D]
[R]
📄 table.h
[E]
[D]
[R]
📄 table_array.h
[E]
[D]
[R]
📄 table_container.h
[E]
[D]
[R]
📄 table_data.h
[E]
[D]
[R]
📄 table_dataset.h
[E]
[D]
[R]
📄 table_iterator.h
[E]
[D]
[R]
📄 table_tdata.h
[E]
[D]
[R]
📁 util_funcs
Open
[D]
[R]
📄 util_funcs.h
[E]
[D]
[R]
📄 var_struct.h
[E]
[D]
[R]
📄 watcher.h
[E]
[D]
[R]
Editing: table_container.h
/* * table_container.h * $Id$ */ #ifndef _TABLE_CONTAINER_HANDLER_H_ #define _TABLE_CONTAINER_HANDLER_H_ #ifdef __cplusplus extern "C" { #endif /* * The table container helper is designed to simplify the task of * writing a table handler for the net-snmp agent when the data being * accessed is accessible via a netsnmp_container. * * Functionally, it is a specialized version of the more * generic table helper but easies the burden of GETNEXT processing by * retrieving the appropriate row for each index through * function calls which should be supplied by the module that wishes * help. The module the table_container helps should, afterwards, * never be called for the case of "MODE_GETNEXT" and only for the GET * and SET related modes instead. */ #include <net-snmp/library/container.h> #include <net-snmp/agent/table.h> #define TABLE_CONTAINER_ROW "table_container:row" #define TABLE_CONTAINER_CONTAINER "table_container:container" #define TABLE_CONTAINER_KEY_NETSNMP_INDEX 1 /* default */ #define TABLE_CONTAINER_KEY_VARBIND_INDEX 2 #define TABLE_CONTAINER_KEY_VARBIND_RAW 3 /* ==================================== * Container Table API: MIB maintenance * ==================================== */ /* * get an injectable container table handler */ netsnmp_mib_handler * netsnmp_container_table_handler_get(netsnmp_table_registration_info *tabreq, netsnmp_container *container, char key_type); /* * register a container table */ int netsnmp_container_table_register(netsnmp_handler_registration *reginfo, netsnmp_table_registration_info *tabreq, netsnmp_container *container, char key_type); int netsnmp_container_table_unregister(netsnmp_handler_registration *reginfo); /** retrieve the container used by the table_container helper */ netsnmp_container* netsnmp_container_table_container_extract(netsnmp_request_info *request); /** find the context data used by the table_container helper */ #ifdef NETSNMP_USE_INLINE NETSNMP_STATIC_INLINE void * netsnmp_container_table_row_extract(netsnmp_request_info *request) { /* * NOTE: this function must match in table_container.c and table_container.h. * if you change one, change them both! */ return netsnmp_request_get_list_data(request, TABLE_CONTAINER_ROW); } NETSNMP_STATIC_INLINE void * netsnmp_container_table_extract_context(netsnmp_request_info *request) { /* * NOTE: this function must match in table_container.c and table_container.h. * if you change one, change them both! */ return netsnmp_request_get_list_data(request, TABLE_CONTAINER_ROW); } #else void * netsnmp_container_table_row_extract(netsnmp_request_info *request); void * netsnmp_container_table_extract_context(netsnmp_request_info *request); #endif /* inline */ void netsnmp_container_table_row_insert(netsnmp_request_info *request, netsnmp_index *row); void netsnmp_container_table_row_remove(netsnmp_request_info *request, netsnmp_index *row); /* =================================== * Container Table API: Row operations * =================================== */ void * netsnmp_container_table_find_next_row(netsnmp_request_info *request, netsnmp_table_request_info *tblreq, netsnmp_container *container, char key_type ); #ifdef __cplusplus } #endif #endif /* _TABLE_CONTAINER_HANDLER_H_ */
Save