Hi,

        I was going through the tunnel MIB implementation, i observed
that for Tunnel Interface Table, the oid tunnelIfLocalInetAddress (which
is currently not supported) requires both ipv4 and ipv6 address to be
displayed. So when i was implementing this, i could not figure out which
data type to be used for this. ASN_IPADDRESS seem to support only ipv4
and for ipv6 i might have to use  ASN_OCTET_STR. Isint  there anyway to
display both ipv4 and ipv6 address?


Code;
     case 9:                   
        ret_int = tunnel->localinetaddr;
        *var_len = 4;
        vp->type = ASN_IPADDRESS;
        return (u_char *) & ret_int;
    case 10:                  
        ret_int = tunnel->remoteinetaddr;
        *var_len = 4;
        vp->type = ASN_IPADDRESS;
        return (u_char *) & ret_int;

This is ok if its ipv4 only, but not for ipv6. So can you suggest me a
way? Its urgent?

Reagrds,
Varun

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to