This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

can not change MIB_OIDSZ

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

Parents
  • 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.

Reply
  • 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.

Children