> Looks to me like the below would be sufficient:
> 

>    struct in_addr *iaddr = &(Dest[1]);
>  #if USE_IPV6
>    struct in6_addr *i6addr = &(Dest[1]);
>    if(addr.IsIPv4()) {
>  #endif
>      Dest[0] = INETADDRESSTYPE_IPV4;
>      addr.GetAddr(*iaddr);
>  #if USE_IPV6
>    } else {
>      Dest[0] = INETADDRESSTYPE_IPV6;
>      addr.GetAddr(*i6addr);
>    }
>  #endif
> 

Unfortunately, its is not rigth. after I commit ;-( 

oid is typedef as u_int *oid   (pointer to an 4 byte integer)
and struct inaddr* is a pointer to a 4 byte integer, so
previously I allocated space for 4x4 16 bytes...The first oid integer
is allocating the whole space for the four bytes of struct in_addr

I'm in a little chaos...

If snmp_core.cc revision 1.10.8.26

How can I come back into 1.10.8.24 ?


Thanks...

> 
> Similar in reverse for oid2addr.
> 
> Amos
> 
> 

Reply via email to