Dear friends,
I need to encode OID address with size more than 13
14, {OID0(1,3), 6, 1, 4, 1, 129, 242, 60, 50, 1, 1, 1, 1, 0},
Since MIB_OIDSZ is 13 by default, I try to change to 14
#define MIB_OIDSZ 14 /* Max.size of Object ID value */
After changing this, when I try to do SNMP GET, the application stop responding and other app also.
My question is, is it possible to change this value? if yes, how and what other parameters need to be changed?
Thank you
Yes, I can confirm this, by changing it back to 13 and adjust the source code, it goes back to normal, but when I use 14, it gets back to its strange habit. :-(
You can confirm what? That you have access to full source code and have recompiled everything - including the SNMP implementation hiding somewhere in the TCP/IP networking suite?
Oh... I confirm only to source code that available to me. SNMP lib implementation is out of my reach Since I dont get any compile error, I assume I have what I need to do
Do you think your compiler can produce any compilation error for source code that you don't own and hence can't recompile?
Do you think that you can change a header file supplied with a library, and have that library behave correctly - without having source code to recompile the library?
What do you think happens, if the library have a static buffer for 13 bytes, and you fill it with 14 bytes? Where will the extra byte be stored? Potentiall for a bad failure?
The TCP/IP source code can be bought - alas to a huge cost since Keil don't think source code is important to us users. So you may have to try to convince Keil that a size of 13 is too little.
I get your point Per... Thank you for the input, I guess we need to think of switching tools
The MIB_OIDSZ has been extended to 17 bytes in MDK4.23
http://www.keil.com/support/man/docs/rlarm/rlarm_tn_mib_entry.htm