[Xorp-users] Compile failure on FreeBSD 5.3

Vlad GALU Vlad GALU <vladgalu@gmail.com>
Tue, 21 Dec 2004 17:54:56 +0200


------=_Part_121_5100559.1103644496086
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<snip>
> Hi,
> 
> I'm not sure what you mean by "Do a cast".
> 

   See the attached patch.

> Thanks,
> Gernot
> 


-- 
If it's there, and you can see it, it's real.
If it's not there, and you can see it, it's virtual.
If it's there, and you can't see it, it's transparent.
If it's not there, and you can't see it, you erased it.

------=_Part_121_5100559.1103644496086
Content-Type: text/x-diff; name="xorp.diff"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="xorp.diff"

diff -Nrau ./xorp-1.0/fea/mfea_proto_comm.cc ./xorp-1.0.bak/fea/mfea_proto_=
comm.cc
--- ./xorp-1.0/fea/mfea_proto_comm.cc=09Fri Jun 11 01:40:55 2004
+++ ./xorp-1.0.bak/fea/mfea_proto_comm.cc=09Tue Dec 21 17:53:05 2004
@@ -1518,8 +1518,8 @@
 =09ip->ip_ttl=09=3D ip_ttl;
 =09ip->ip_tos=09=3D ip_tos;
 =09
-=09src.copy_out(ip->ip_src);
-=09dst.copy_out(ip->ip_dst);
+=09src.copy_out((in_addr&)ip->ip_src);
+=09dst.copy_out((in_addr&)ip->ip_dst);
 =09ip->ip_len =3D (ip->ip_hl << 2) + datalen;
 #ifdef IPV4_RAW_OUTPUT_IS_RAW
 =09ip->ip_len =3D htons(ip->ip_len);

------=_Part_121_5100559.1103644496086--