Required Scenairo/Psedocode:

I want to parse the Get/Set requests inside the Table_Handler() registered via 
netsnmp_register_table_data_set();


Table_Handler()
{
  for (; requests; requests = requests->next) {

    switch (reqinfo->mode) {

        case MODE_GET:
        switch (table_info->colnum) {
            case COLUMN_ONE:
                a)evaluate row_number         //perhaps the index
                b)set custom value to return     //snmp_set_var_typed_value();
            
            case COLUMN_TWO:
                ......
        }break;        
                
        case MODE_SET_RESERVE1(??):
        switch (table_info->colnum) {
            case COLUMN_ONE:
                a)evaluate row_number             //perhaps the index
                b)get value sent with set command    //str_val = 
requests->requestvb->val.string;
            
            case COLUMN_TWO:
                     ......

        }break;        
    }break;
  }
}


Quries:
1. How can i find the Row/Index in above handler.
2. Will this for loop on "requests", satisfy the purpose.
3. MODE_GET works fine but which mode or combination of modes i must use for 
SET because in the above sitiation i have checked only "MODE_SET_RESERVED1" 
works but with an error of "unsupported mode".. but the control goes inside 
this switch condition. please can you tel me the combination of SETs to satisfy 
the purpose.

Please correct me where i am wrong and guide me for the stuff i am unable to do 
yet.


NOTE:
1. I used mib2c.create-dataset.conf for code generation, did i chose right one 
or i may have used mib2c.iterate.conf.


Thanking in advance.

Regards,

- zeeshan


      New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail. 
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to