Why mib2c generates different .c/.h depending on style?

Kavita Raghunathan <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <C7CFE968.25FC%[email protected]>
Hello,
I have now been able to use mib2c on our proprietary old MIB and generate .c/.h files after fixing some tweaking.

When I apply mib2c on the MIB, there is a question asked like shown below. If I pick Net-SNMP style code, there is almost nothing in the .c file and its meaningless. When I pick ucd-snmp style, I get more meaningful looking code.

Obviously I want to pick Net-SNMP style, but it doesn’t sound like that will work. I cant attach the output because of NDA issues. Would like some pointers why this would happen. Just keep in mind this is an old MIB.

“
First, do you want to generate code that is compatible with the
ucd-snmp 4.X line of code, or code for the newer Net-SNMP 5.X code
base (which provides a much greater choice of APIs to pick from):

  1) ucd-snmp style code
  2) Net-SNMP style code

Select your choice : 1
“

Thanks,
Kavita

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
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.