diff options
| author | 2008-11-21 18:01:30 +0000 | |
|---|---|---|
| committer | 2008-11-21 18:01:30 +0000 | |
| commit | 0a4dcc4a507c83379cee040505f37291da8dc046 (patch) | |
| tree | ff65595f4c3acf37ff53ce4961ec6cbc6df13b48 /sys/net/rtsock.c | |
| parent | don't declare th0 extern before declaring it as static; makes gcc4 happy (diff) | |
| download | wireguard-openbsd-0a4dcc4a507c83379cee040505f37291da8dc046.tar.xz wireguard-openbsd-0a4dcc4a507c83379cee040505f37291da8dc046.zip | |
Change rn_mpath_next() to be able to walk over the full multipath list
not only over routes of the same prio. This makes it possible to modify
rt_mpath_matchgate() so that if only gateway is specified without a specific
priority it will scan the full list and not only the first routes.
This is also needed for upcoming link state tracking.
Diffstat (limited to 'sys/net/rtsock.c')
| -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 745678ca20b..9191c1120ea 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsock.c,v 1.76 2008/08/07 21:32:08 claudio Exp $ */ +/* $OpenBSD: rtsock.c,v 1.77 2008/11/21 18:01:30 claudio Exp $ */ /* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */ /* @@ -356,7 +356,7 @@ route_output(struct mbuf *m, ...) } /* if multipath routes */ - if (rn_mpath_next(rn)) { + if (rn_mpath_next(rn, 0)) { if (gate) rt = rt_mpath_matchgate(rt, gate, prio); else if (rtm->rtm_type != RTM_GET) |
