summaryrefslogtreecommitdiff
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2008-11-21 18:01:31 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2008-11-21 18:01:31 +0000
commit8e06c6f5dc2471f74afaba2d2165f15df7ccccb0 (patch)
tree360aefddde5c037a78d1da81fcde1cbb01aa9c25 /sys/net/if.c
parent070dd156775d8869751bd9b8b48fa3df30d11948 (diff)
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/if.c')
-rw-r--r--sys/net/if.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index c83b5bbc9b8..916df0176eb 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.174 2008/11/10 18:08:42 claudio Exp $ */
+/* $OpenBSD: if.c,v 1.175 2008/11/21 18:01:30 claudio Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -1914,7 +1914,7 @@ if_group_egress_build(void)
if (rt->rt_ifp)
if_addgroup(rt->rt_ifp, IFG_EGRESS);
#ifndef SMALL_KERNEL
- rn = rn_mpath_next(rn);
+ rn = rn_mpath_next(rn, 0);
#else
rn = NULL;
#endif
@@ -1929,7 +1929,7 @@ if_group_egress_build(void)
if (rt->rt_ifp)
if_addgroup(rt->rt_ifp, IFG_EGRESS);
#ifndef SMALL_KERNEL
- rn = rn_mpath_next(rn);
+ rn = rn_mpath_next(rn, 0);
#else
rn = NULL;
#endif