don't get in the way of setting the rdomain on gre(4)
authordlg <dlg@openbsd.org>
Thu, 22 Feb 2018 07:33:24 +0000 (07:33 +0000)
committerdlg <dlg@openbsd.org>
Thu, 22 Feb 2018 07:33:24 +0000 (07:33 +0000)
sys/net/if_gre.c

index 76aa35e..2e33fc0 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: if_gre.c,v 1.110 2018/02/21 22:20:19 dlg Exp $ */
+/*     $OpenBSD: if_gre.c,v 1.111 2018/02/22 07:33:24 dlg Exp $ */
 /*     $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */
 
 /*
@@ -1676,6 +1676,8 @@ gre_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
                }
                break;
        case SIOCSIFRDOMAIN:
+               /* let if_rdomain do its thing */
+               error = ENOTTY;
                break;
 
        case SIOCSETKALIVE: