diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2008-11-21 18:01:31 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2008-11-21 18:01:31 +0000 |
commit | 8e06c6f5dc2471f74afaba2d2165f15df7ccccb0 (patch) | |
tree | 360aefddde5c037a78d1da81fcde1cbb01aa9c25 /sys/net/pf.c | |
parent | 070dd156775d8869751bd9b8b48fa3df30d11948 (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/pf.c')
-rw-r--r-- | sys/net/pf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 5cb55844445..35200c96fc3 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.625 2008/10/28 22:57:01 mpf Exp $ */ +/* $OpenBSD: pf.c,v 1.626 2008/11/21 18:01:30 claudio Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -5153,7 +5153,7 @@ pf_routable(struct pf_addr *addr, sa_family_t af, struct pfi_kif *kif) if (kif->pfik_ifp == ifp) ret = 1; - rn = rn_mpath_next(rn); + rn = rn_mpath_next(rn, 0); } while (check_mpath == 1 && rn != NULL && ret == 0); } else ret = 0; |