Logo
Home page Net-SNMP

Archive Search:

Require all words?

Site Search:
Google
Main Page | Modules | Data Structures | File List | Data Fields | Related Pages | Examples

mib_maintenance
[generic_table_API]

Routines for maintaining a MIB table. More...

Functions

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.

Detailed Description

Routines for maintaining a MIB table.

Function Documentation

void netsnmp_generic_extract_row netsnmp_request_info request  ) 
 

Extract the row relating to a requested varbind.

Definition at line 196 of file table_generic.c.

void netsnmp_generic_extract_table netsnmp_request_info request  ) 
 

Extract the table relating to a requested varbind.

Definition at line 190 of file table_generic.c.

netsnmp_generic_free_handler netsnmp_mib_handler handler  ) 
 

Free a MIB handler structure, releasing any related resources.

Possibly called automatically by 'netsnmp_unregister_handler' ?

Definition at line 166 of file table_generic.c.

References netsnmp_mib_handler.

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.

Definition at line 159 of file table_generic.c.

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.

Definition at line 204 of file table_generic.c.

int netsnmp_generic_register netsnmp_handler_registration reginfo,
void *  table,
netsnmp_table_registration_info table_info
 

Register a MIB table with the SNMP agent.

Definition at line 173 of file table_generic.c.

References netsnmp_handler_registration.

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?

Definition at line 184 of file table_generic.c.

References netsnmp_handler_registration.


Generated on Fri Dec 30 13:48:01 2005 for net-snmp by  doxygen 1.3.9.1

Valid CSS!


Last modified: Thursday, 01-Mar-2007 16:20:05 PST
For questions regarding web content and site functionality, please write to the net-snmp-users mail list.