Dear Dave:

I am Clement. when I try to develop my own mib, I found I do not
realize the c template after mib2c, why you using switch (reqinfo->mode)

   switch (reqinfo->mode) {

   case MODE_GET:


   case MODE_SET_RESERVE1

   case MODE_SET_RESERVE2:

   case MODE_SET_FREE

   case MODE_SET_ACTION:

   case MODE_SET_COMMIT:

   case MODE_SET_UNDO

   }

I don't understand what these cases do , and how to apply these to write my
own function call
even I have read snmpdemoapp and asyncapp, I still confused deeply. Take
data_set.c for instance ,
the code structure seems different, it does not contains the above
switch...case..., instead, I saw many
API such like netsnmp_create_table_data_set, . ... and so on.  In this
situation, I don't know how to
develop my own mib.

Furthermore, the notification.c  declare oid and oid_length first, but in
snmpdemoapp, the first thing to do
is creating snmp_session, then snmp_pdu, and variable_list. It looks like
the session and pdu can be
passed over, but that also make me more confused. Can you give me any advice
about these problems?
Any suggestion is high appreciated, thank you very much.

Best Regards,
Clement Hsu
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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

Reply via email to