diff options
author | 2016-02-26 07:54:39 +0000 | |
---|---|---|
committer | 2016-02-26 07:54:39 +0000 | |
commit | 76680400ff20909771b6a29afb9fcb09442847f3 (patch) | |
tree | fe4355978f61897929b2e49090cf8ea03c39f4d2 /sys/net/route.c | |
parent | pctr.h is not used here, so no need to include it. (diff) | |
download | wireguard-openbsd-76680400ff20909771b6a29afb9fcb09442847f3.tar.xz wireguard-openbsd-76680400ff20909771b6a29afb9fcb09442847f3.zip |
L2 entries are always in the first table of a routing domain, this fixes
a regression introduced during 5.7 and 5.8 as reported by Jean-Daniel
Dupas on misc@
diff provided by mpi, ok claudio
Diffstat (limited to 'sys/net/route.c')
-rw-r--r-- | sys/net/route.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index 08859f1a4b3..a538ff15f79 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.294 2016/02/24 22:41:53 mpi Exp $ */ +/* $OpenBSD: route.c,v 1.295 2016/02/26 07:54:39 deraadt Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* @@ -389,7 +389,8 @@ _rtalloc(struct sockaddr *dst, uint32_t *src, int flags, unsigned int rtableid) * this behavior. But it is safe since rt_checkgate() wont * allow us to us this route later on. */ - nhrt = rt_match(rt->rt_gateway, NULL, flags | RT_RESOLVE, rtableid); + nhrt = rt_match(rt->rt_gateway, NULL, flags | RT_RESOLVE, + rtable_l2(rtableid)); if (nhrt == NULL) return (rt); |