RE: 回复:RE: mib file is tables,us e mib2c.table_data.conf template generate .c .h files,./configur e --with-mib-modules=

"Mike Ayers" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <83E753BE7B6A324ABB336245BAF1DAAC0D81D20D@mailserver.metatv-ds.metatv.com>
	[Please send to the list, thanks.]

> From: [email protected] [mailto:[email protected]]
> Sent: Tuesday, December 01, 2009 11:11 PM

> >>Where do the rows get added?  I see a >>function to do this, but I do
> not see it called..?
> 
> Mike:
> 
> what do you meaning?My .c file is here:

	Yes, I already saw it - no need to put it in every email. 

[SNIP/]

	This function:

> /* create a new row in the table */
> netsnmp_tdata_row *
> diskSystemTable_createEntry(netsnmp_tdata *table_data
>                 ) {
>     struct diskSystemTable_entry *entry;
>     netsnmp_tdata_row *row;
> 
>     entry = SNMP_MALLOC_TYPEDEF(struct diskSystemTable_entry);
>     if (!entry)
>         return NULL;
> 
>     row = netsnmp_tdata_create_row();
>     if (!row) {
>         SNMP_FREE(entry);
>         return NULL;
>     }
>     row->data = entry;
>     netsnmp_tdata_add_row( table_data, row );
>     return row;
> }

	When does it get called?  When do you put rows in the table?  The correct response for a MIB walk on a table with no rows is EndOfMIB.


	HTH,

Mike

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.