diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2010-11-19 13:46:21 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2010-11-19 13:46:21 +0100 |
commit | 391931d45686a807d322878d4b3d5c9634e2dbca (patch) | |
tree | 73916db85f6b68eabb5000fdcfe19ade4e7954f3 /proto/static/static.c | |
parent | 79f561a173c9ceb824d64aa32d82e43ba62acebc (diff) |
Minor finalizations of link state checks.
Diffstat (limited to 'proto/static/static.c')
-rw-r--r-- | proto/static/static.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/static/static.c b/proto/static/static.c index 4f879bd3..4ee2cbdb 100644 --- a/proto/static/static.c +++ b/proto/static/static.c @@ -72,7 +72,7 @@ static_decide(struct static_config *cf, struct static_route *r) if (!ifa) return 0; - if ((cf->check == STATIC_CHECK_LINK) && !(ifa->flags & IF_LINK_UP)) + if (cf->check_link && !(ifa->flags & IF_LINK_UP)) return 0; return 1; |