One more observation : If I put IpAddress in the mib ,
It generates as below
snmp_set_var_typed_value(var, ASN_IPADDRESS, (u_char
*) /* XXX: column data */, /* XXX: column data length
*/);
The same thing If I use InetAddres in the mib, the
generated code is as below
snmp_set_var_typed_value(var, ASN_OCTET_STR, (u_char
*) /* XXX: column data */, /* XXX: column data length
*/);
I need to use IPv6. As I understood , I should use
InetAddress for the same.
Anything wrong here ?
--- mahua dutta <[EMAIL PROTECTED]> wrote:
> mib2c genererated code for Inetaddress as
> ASN_OCTET_STR.
> .So, I like to know whether Inetaddress be
> considered
> as OCTET sting while implementing the mib.
> If So, for Ipv6 or Ipv4, the pseudo code can be as
> snmp_set_var_typed_value(var, ASN_OCTET_STR, (u_char
> *)"127.0.0.1", strlen("127.0.0.1")).
>
> Is it correct to do that ?
>
> There is an similar question in the following link
>
http://sourceforge.net/mailarchive/message.php?msg_id=11149756
>
> Thanks
> Mamon
>
>
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders