[PATCH]: The 6to4 stf0 interface flapping in/out of tentative in FreeBSD 11
Viktor Dukhovni
freebsd at dukhovni.org
Fri Jun 22 16:38:19 UTC 2018
On Mon, Nov 06, 2017 at 04:22:48AM +0000, Viktor Dukhovni wrote:
> Today, I looked closely at the kernel sources and found the issue.
> Patch below. Interfaces found to not have IFF_DRV_RUNNING in
> if_drv_flags by the periodic interface scan are marked tentative.
> Since the "stf" driver did not set that flag, the "stf" interface
> flaps.
>
> Index: sys/net/if_stf.c
> ===================================================================
> --- sys/net/if_stf.c (revision 325169)
> +++ sys/net/if_stf.c (working copy)
> @@ -722,6 +722,7 @@
> }
>
> ifp->if_flags |= IFF_UP;
> + ifp->if_drv_flags |= IFF_DRV_RUNNING;
> break;
>
> case SIOCADDMULTI:
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").
Appied the same patch and rebooted, and the problem is gone. Here's
the patch again:
Index: sys/net/if_stf.c
--- sys/net/if_stf.c (revision 333375)
+++ sys/net/if_stf.c (working copy)
@@ -722,6 +722,7 @@
}
ifp->if_flags |= IFF_UP;
+ ifp->if_drv_flags |= IFF_DRV_RUNNING;
break;
case SIOCADDMULTI:
$ svn info
Path: .
Working Copy Root Path: /usr/src
URL: https://svn0.us-west.freebsd.org/base/releng/11.1
Relative URL: ^/releng/11.1
Repository Root: https://svn0.us-west.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 333375
Node Kind: directory
Schedule: normal
Last Changed Author: gordon
Last Changed Rev: 333375
Last Changed Date: 2018-05-08 13:18:24 -0400 (Tue, 08 May 2018)
--
VIktor.
More information about the freebsd-net
mailing list