diff options
author | 2016-09-13 08:11:39 +0000 | |
---|---|---|
committer | 2016-09-13 08:11:39 +0000 | |
commit | 8901721bc524287306e224924d73d65e8151ac38 (patch) | |
tree | 82cf15b642d92b056bb18179eda90efab0a93f4c | |
parent | we no longer reach around and call DDB specific functions, so always (diff) | |
download | wireguard-openbsd-8901721bc524287306e224924d73d65e8151ac38.tar.xz wireguard-openbsd-8901721bc524287306e224924d73d65e8151ac38.zip |
Stop creating a BFD descriptor when the route is created.
Since our BFD implementation relies on the existence of routes, it is much
easier to set the BFD parameters with RTM_CHANGE, especially if something
bad happen.
Discussed with and ok phessler@, claudio@
-rw-r--r-- | sys/net/route.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index 54c72308521..1e0696ba950 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.327 2016/09/08 09:11:43 mpi Exp $ */ +/* $OpenBSD: route.c,v 1.328 2016/09/13 08:11:39 mpi Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* @@ -1098,11 +1098,6 @@ rtrequest(int req, struct rt_addrinfo *info, u_int8_t prio, } rtfree(crt); } -#ifdef BFD - if (error == 0 && ISSET(rt->rt_flags, RTF_BFD)) - error = bfd_rtalloc(rt); - /* XXX this code will return EEXIST at the moment */ -#endif if (error != 0) { ifafree(ifa); rtfree(rt->rt_parent); |