関数 | |
netsnmp_mib_handler * | netsnmp_generic_get_handler (void) |
Create a MIB handler structure. | |
netsnmp_generic_free_handler (netsnmp_mib_handler *handler) | |
Free a MIB handler structure, releasing any related resources. | |
int | netsnmp_generic_register (netsnmp_handler_registration *reginfo, void *table, netsnmp_table_registration_info *table_info) |
Register a MIB table with the SNMP agent. | |
int | netsnmp_generic_unregister (netsnmp_handler_registration *reginfo) |
Unregister a MIB table from the SNMP agent. | |
void | netsnmp_generic_extract_table (netsnmp_request_info *request) |
Extract the table relating to a requested varbind. | |
void | netsnmp_generic_extract_row (netsnmp_request_info *request) |
Extract the row relating to a requested varbind. | |
void | netsnmp_generic_insert_row (netsnmp_request_info *request, void *row) |
Associate a (new) row with the requested varbind. |
void netsnmp_generic_extract_row | ( | netsnmp_request_info * | request | ) |
void netsnmp_generic_extract_table | ( | netsnmp_request_info * | request | ) |
netsnmp_generic_free_handler | ( | netsnmp_mib_handler * | handler | ) |
Free a MIB handler structure, releasing any related resources.
Possibly called automatically by 'netsnmp_unregister_handler' ?
table_generic.c の 165 行で定義されています。
netsnmp_mib_handler* netsnmp_generic_get_handler | ( | void | ) |
Create a MIB handler structure.
This will typically be invoked within the corresponding 'netsnmp_generic_register' routine (or the registration code of a sub-helper based on this helper).
Alternatively, it might be called from the initialisation code of a particular MIB table implementation.
table_generic.c の 158 行で定義されています。
void netsnmp_generic_insert_row | ( | netsnmp_request_info * | request, | |
void * | row | |||
) |
Associate a (new) row with the requested varbind.
The row should also be associated with any other varbinds that refer to the same index values.
table_generic.c の 203 行で定義されています。
int netsnmp_generic_register | ( | netsnmp_handler_registration * | reginfo, | |
void * | table, | |||
netsnmp_table_registration_info * | table_info | |||
) |
int netsnmp_generic_unregister | ( | netsnmp_handler_registration * | reginfo | ) |
Unregister a MIB table from the SNMP agent.
This should also release the internal representation of the table. ?? Is a table-specific version of this needed, or would 'netsnmp_unregister_handler' + 'netsnmp_generic_free_handler' do?
table_generic.c の 183 行で定義されています。