[Please send to the list, thanks.] > From: chenyapu1...@qq.com [mailto:chenyapu1...@qq.com] > 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 Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users