Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jun 2018 20:41:10 +0300
From:      "Andrey V. Elsukov" <bu7cher@yandex.ru>
To:        freebsd-net@freebsd.org, Viktor Dukhovni <freebsd@dukhovni.org>
Subject:   Re: [PATCH]: The 6to4 stf0 interface flapping in/out of tentative in FreeBSD 11
Message-ID:  <8fe71247-a9a4-e3cb-3e4a-03852307f080@yandex.ru>
In-Reply-To: <20180622163812.GA17559@mournblade.imrryr.org>
References:  <CEBB4E6F-4D5F-491F-8C81-C9F81325078B@dukhovni.org> <20171106042248.GL3322@mournblade.imrryr.org> <20180622163812.GA17559@mournblade.imrryr.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--a6m4mp8fd6l2BsvcaD7ytmIWQ4jB6CRRj
Content-Type: multipart/mixed; boundary="eXoUMBQP722Ii9Cog335T5jgeXwnCNlt3";
 protected-headers="v1"
From: "Andrey V. Elsukov" <bu7cher@yandex.ru>
To: freebsd-net@freebsd.org, Viktor Dukhovni <freebsd@dukhovni.org>
Message-ID: <8fe71247-a9a4-e3cb-3e4a-03852307f080@yandex.ru>
Subject: Re: [PATCH]: The 6to4 stf0 interface flapping in/out of tentative in
 FreeBSD 11
References: <CEBB4E6F-4D5F-491F-8C81-C9F81325078B@dukhovni.org>
 <20171106042248.GL3322@mournblade.imrryr.org>
 <20180622163812.GA17559@mournblade.imrryr.org>
In-Reply-To: <20180622163812.GA17559@mournblade.imrryr.org>

--eXoUMBQP722Ii9Cog335T5jgeXwnCNlt3
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 22.06.2018 19:38, Viktor Dukhovni wrote:
> I just upgraded to 11.1-p10, forgetting I had patched my kernel,
> and the stf0 interface flapping was back, with IPv6 connectivity
> disappearing every other second or so (interface shows as "tentative"
> and outgoing connections fail with "can't assign requested address").
>=20
> Appied the same patch and rebooted, and the problem is gone.  Here's
> the patch again:
>=20
> Index: sys/net/if_stf.c
> --- sys/net/if_stf.c	(revision 333375)
> +++ sys/net/if_stf.c	(working copy)
> @@ -722,6 +722,7 @@
>  		}
> =20
>  		ifp->if_flags |=3D IFF_UP;
> +		ifp->if_drv_flags |=3D IFF_DRV_RUNNING;
>  		break;
> =20
>  	case SIOCADDMULTI:
>=20
Hi,

Your change looks reasonable due to IPv6 DAD procedure does check for
presence of IFF_DRV_RUNNING flag. But actually it seems the right
solution should be disabling DAD for if_stf(4) interface.
IPv6 DAD requires that given interface should be multicast capable, but
for if_stf(4) it is not true.
Will it help if you use `ifconfig stf0 inet6 no_dad` before assigning
IPv6 address?

--=20
WBR, Andrey V. Elsukov


--eXoUMBQP722Ii9Cog335T5jgeXwnCNlt3--

--a6m4mp8fd6l2BsvcaD7ytmIWQ4jB6CRRj
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAlstNLYACgkQAcXqBBDI
oXqB/wf/R4Be3fttFm/bbCnQcS2ERuredVi2L5WW+zjoOsWCiYfRNYmJx5kdtZsh
DFrZm/W77S2vbwgc8rrkOx5Pdikv/MIu81vTcZyjZwKxRNMOhbTxWmZ2aSoLE4J7
+Wlb/0WKBenC61BNq93qgXNafK6ZBeB3w7IAypFyzF5lV44+GHdvzmDZVMxd4wMc
Uh6GbgvtXoxV4wxzSKoXeUPeLGF85LlTvQB+GnYTUqe5VUI6COdRa3R6a0hD43gF
Y977xwmqnEOXY1e69iaa8Iqi9Ek/Mw1wb2qiu9pRd2jicDt7JrMqSS6NNWZt65XY
Gf7Ss5qB9YCLUvbnEs/M3TyUKQ2OxQ==
=OPL8
-----END PGP SIGNATURE-----

--a6m4mp8fd6l2BsvcaD7ytmIWQ4jB6CRRj--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8fe71247-a9a4-e3cb-3e4a-03852307f080>