Size of MIB variable using mib2c

"Raghavendra Prasad" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi everybody,

  I am writing mib2c configuration file, we intend to create a code
framework for agent from this. I have a requirement to find out the
size of string-type MIB variables  - unfortunately I could not figure
out how to find the size of string variable, I need this for malloc
memory  allocation.

I found $var.oidlength, which gives oid length at:

http://www.net-snmp.org/docs/man/mib2c.conf.html

My requirement will be quite similar to this to find string length.
Please  help.


With regards,

Raghavendra

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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.