Re: [undo commit]

From: Rafael Martinez \(Squid development\) <rmartine@dont-contact.us>
Date: Wed, 21 Nov 2007 00:33:17 +0100

> 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
>
>
Received on Tue Nov 20 2007 - 16:33:17 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 01 2007 - 12:00:05 MST