summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2005-08-14 09:55:56 +0000
committermarkus <markus@openbsd.org>2005-08-14 09:55:56 +0000
commit886634a67adb82f23d6a0468ee1e113ce45f1cb1 (patch)
treea8898ab20c254cd222ea6a078d49c73f1a64f276
parentzap extra line (diff)
downloadwireguard-openbsd-886634a67adb82f23d6a0468ee1e113ce45f1cb1.tar.xz
wireguard-openbsd-886634a67adb82f23d6a0468ee1e113ce45f1cb1.zip
don't require a valid route when configuring the tunnel;
from Stephen Marley; ok deraadt@
-rw-r--r--sys/net/if_gre.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c
index 8b411fc95fe..0866ec7d824 100644
--- a/sys/net/if_gre.c
+++ b/sys/net/if_gre.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gre.c,v 1.35 2005/07/31 03:52:18 pascoe Exp $ */
+/* $OpenBSD: if_gre.c,v 1.36 2005/08/14 09:55:56 markus Exp $ */
/* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */
/*
@@ -523,15 +523,7 @@ gre_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
RTFREE(sc->route.ro_rt);
sc->route.ro_rt = (struct rtentry *) 0;
}
-
gre_compute_route(sc);
- if (sc->route.ro_rt == 0)
- {
- sc->g_src.s_addr = INADDR_ANY;
- sc->g_dst.s_addr = INADDR_ANY;
- splx(s);
- return EIO; /* Is this is good ? */
- }
ifp->if_flags |= IFF_UP;
}
break;