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)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to