svn commit: r288529 - head/sys/net

Andrey V. Elsukov ae at FreeBSD.org
Sat Oct 3 03:57:59 UTC 2015


Author: ae
Date: Sat Oct  3 03:57:58 2015
New Revision: 288529
URL: https://svnweb.freebsd.org/changeset/base/288529

Log:
  Always detach encap handler when reconfiguring tunnel.
  
  Reported by:	hrs
  MFC after:	1 week

Modified:
  head/sys/net/if_gre.c

Modified: head/sys/net/if_gre.c
==============================================================================
--- head/sys/net/if_gre.c	Sat Oct  3 03:12:57 2015	(r288528)
+++ head/sys/net/if_gre.c	Sat Oct  3 03:57:58 2015	(r288529)
@@ -623,7 +623,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)


More information about the svn-src-all mailing list