Date: Mon, 12 Oct 2015 07:49:07 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r289169 - stable/10/sys/net Message-ID: <201510120749.t9C7n7L5090596@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ae Date: Mon Oct 12 07:49:07 2015 New Revision: 289169 URL: https://svnweb.freebsd.org/changeset/base/289169 Log: MFC r288529: Always detach encap handler when reconfiguring tunnel. Modified: stable/10/sys/net/if_gre.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/net/if_gre.c ============================================================================== --- stable/10/sys/net/if_gre.c Mon Oct 12 05:21:51 2015 (r289168) +++ stable/10/sys/net/if_gre.c Mon Oct 12 07:49:07 2015 (r289169) @@ -624,7 +624,7 @@ gre_set_tunnel(struct ifnet *ifp, struct default: return (EAFNOSUPPORT); } - if (sc->gre_family != src->sa_family) + if (sc->gre_family != 0) gre_detach(sc); GRE_WLOCK(sc); if (sc->gre_family != 0)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510120749.t9C7n7L5090596>