diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-09-01 09:35:29 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-09-01 09:35:29 +0000 |
commit | 9a428b74b3b9c0f3af0308c5a96956e3beaa70bb (patch) | |
tree | 063e2c81b6f6ae5c11964310013a31c65bfdaee1 /sys | |
parent | 0eda11d90d22020b557398a0672fffdd4e949f1f (diff) |
Use rtable_match() rather than rtalloc() when looking for an existing
entry in RTM_ADD.
rtable_match() does not modify the 'Use' counter of the route and unbreak
regression tests.
Breakage reported by bluhm@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/rtsock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index ac8ecbe3ab6..9037a0e3c6a 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsock.c,v 1.197 2016/09/01 09:22:58 mpi Exp $ */ +/* $OpenBSD: rtsock.c,v 1.198 2016/09/01 09:35:28 mpi Exp $ */ /* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */ /* @@ -603,7 +603,7 @@ route_output(struct mbuf *m, ...) goto flush; } - rt = rtalloc(info.rti_info[RTAX_DST], 0, tableid); + rt = rtable_match(tableid, info.rti_info[RTAX_DST], NULL); if ((error = route_arp_conflict(rt, &info))) { rtfree(rt); rt = NULL; |