Date: Fri, 26 Jan 2007 15:30:33 -0800 From: "Bruce A. Mah" <bmah@freebsd.org> To: =?UTF-8?B?SklOTUVJIFRhdHV5YSAvIOelnuaYjumBlOWTiQ==?= <jinmei@isl.rdc.toshiba.co.jp> Cc: freebsd-net@freebsd.org Subject: Re: IPv6 over gif(4) broken in 6.2-RELEASE? Message-ID: <45BA8F19.70807@freebsd.org> In-Reply-To: <y7vmz47x9e4.wl%jinmei@isl.rdc.toshiba.co.jp> References: <20070120162936.GA18104@tomcat.kitchenlab.org> <20070121073244.GA80811@zibbi.meraka.csir.co.za> <y7vmz47x9e4.wl%jinmei@isl.rdc.toshiba.co.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3DB7C2120A0DC897F9361150 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable If memory serves me right, JINMEI Tatuya / =E7=A5=9E=E6=98=8E=E9=81=94=E5= =93=89 wrote: >>>>>> On Sun, 21 Jan 2007 09:32:44 +0200,=20 >>>>>> John Hay <jhay@meraka.org.za> said: >=20 >>> There's another workaround for people stuck in this situation and who= >>> aren't in a position to try this diff. That is to manually install >>> the host route like this: >>> >>> # route add -host -inet6 aaaa:bbbb:cccc:dddd::2 -interface gif0 -nost= atic -llinfo >>> >>> Comments? >=20 >> Well it seems that even my stuff does not always work perfectly with t= hat >> change (1.48.2.15), so maybe we should revert it and I will search for= >> yet other ways to make FreeBSD's IPv6 code to actually work for our st= uff. >=20 >> My "stuff" is a wireless IPv6 only network running in adhoc mode with >> olsrd as the routing protocol. The problem is that all nodes on a subn= et >> cannot "see" each other, so olsrd needs to add routes to a node throug= h >> another node. Sometimes, just to complicate matters a little more, you= >> would want to have more than one network card in a host, all with the = same >> subnet address. (For instance on a high site, with sector antennas.) >=20 >> The case that I found that still does not work reliably, is if olsrd a= dd >> the route and route is not immediately used, then the nd code will tim= e >> it out and remove it. >=20 > I think I'm responsible for the troubles. I've been thinking about > how to meet all the requests, and concluded that it's more complicated > than I originally thought. >=20 > I've come across an idea that may solve the problems, but I'll need > more time to implement and test it. >=20 > At the moment, I suggest reverting the 1.48.2.16 change for those who > simply wanted a gif to work. Based on these comments above, I've reverted rev. 1.67, 1.68, 1.69, and 1.70 of nd.c on HEAD. After a bunch more testing I've convinced myself that I think this will solve the problems that we have been seeing, and possibly why some other people's testing yielded counter-intitive results. I'll MFC to STABLE in 3 days. Commit message below... Bruce ----- bmah 2007-01-26 23:22:58 UTC FreeBSD src repository Modified files: sys/netinet6 nd6.c Log: Revert nd6.c revs. 1.67, 1.68, 1.69, 1.70 in an attempt to unbreak IPv6 over point-to-point gif(4) tunnels. These revisions caused a host route to the destination of a point-to-point gif(4) interface to not get installed when the interface= and destination addresses were assigned. This caused "no route to host" errors when trying to send traffic over the interface. The first packet arriving inbound over the tunnel, however, would cause the correct route to get installed, allowing subsequent outbound traffic to be routed correctly. gif(4) interfaces with prefix lengths of less than 128 bits (i.e. no explicit destination address assigned) were not affected by this bug. This bug fix is a possible candidate for a 6.2-RELEASE errata note. Approved by: jhay (original committer) Discussed with: jhay, JINMEI Tatuya MFC after: 3 days Revision Changes Path 1.74 +1 -1 src/sys/netinet6/nd6.c --------------enig3DB7C2120A0DC897F9361150 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFuo8f2MoxcVugUsMRAs0oAJ9zFL6y0GM0cv4pspAM2evTl0lzJACfXpR0 BieEAS33m9kJadCEd048LsQ= =eLoT -----END PGP SIGNATURE----- --------------enig3DB7C2120A0DC897F9361150--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45BA8F19.70807>