Re: table problems

2005-06-23 Thread Chris Cunningham
OK So I finally figured out what the problem was and I feel like an idiot. The initialize function *has* to be named init_FILENAME. Mib2c generates the function init_FILENAME but it is pretty much just a wrapper function that they use to call the real initialize function(s) which mib2c names in

Re: table problems

2005-06-23 Thread Chris Cunningham
> Errr where's the "init_table_adams_req_table()" routine gone? > If that's the complete code file that you're working with, > then I don't see how your module will be initialised at all. That would be gmail thinking it's clever. Lets try again. Module: #include #include #include /** I

Re: table problems

2005-06-23 Thread Dave Shield
On Thu, 2005-06-23 at 15:25, Chris Cunningham wrote: > > There's one other suggestion I meant to make earlier. > > Try dropping the 'netsnmp_register_auto_data_table()' statement. > > See if that makes any difference. > > Again no luck. > Here's the module: > > #include > #include > #include

Re: table problems

2005-06-23 Thread Chris Cunningham
>[ First - *please* don't mail me privately, without copying > any responses to the mailing list. I don't have the time > or inclination to offer private, unpaid, SNMP consultancy. > Keep discussions to the list, where others can both learn > and offer advice. Thanks. ] Tha

Re: table problems

2005-06-23 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On Thu

Re: table problems

2005-06-23 Thread Dave Shield
On Wed, 2005-06-22 at 23:20, Chris Cunningham wrote: > I ran mib2c.create-dataset.conf on my MIB file and then slightly > altered it in a fashion similar to the example data_set. > row = netsnmp_create_table_data_row(); > netsnmp_table_row_add_index(row, ASN_INTEGER, &i, sizeof(i));

table problems

2005-06-22 Thread Chris Cunningham
Long email! I ran mib2c.create-dataset.conf on my MIB file and then slightly altered it in a fashion similar to the example data_set. Here is my code: #include #include #include /** Initialize the adams_req_table table by defining its contents and how it's structured */ void initialize_table