dont handle SIOCSIFRDOMAIN twice, egre isn't supposed to filter it.
authordlg <dlg@openbsd.org>
Mon, 12 Feb 2018 00:07:53 +0000 (00:07 +0000)
committerdlg <dlg@openbsd.org>
Mon, 12 Feb 2018 00:07:53 +0000 (00:07 +0000)
sys/net/if_gre.c

index bcec73c..54d4dd5 100644 (file)
@@ -1,4 +1,4 @@
-/*      $OpenBSD: if_gre.c,v 1.98 2018/02/09 10:12:38 dlg Exp $ */
+/*      $OpenBSD: if_gre.c,v 1.99 2018/02/12 00:07:53 dlg Exp $ */
 /*     $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */
 
 /*
@@ -1078,13 +1078,6 @@ gre_tunnel_ioctl(struct ifnet *ifp, struct gre_tunnel *tunnel,
        case SIOCDELMULTI:
                break;
 
-       case SIOCSIFRDOMAIN:
-               if (ISSET(ifp->if_flags, IFF_RUNNING)) {
-                       error = EBUSY;
-                       break;
-               }
-               break;
-
        case SIOCSVNETID:
                if (ISSET(ifp->if_flags, IFF_RUNNING)) {
                        error = EBUSY;