From 391931d45686a807d322878d4b3d5c9634e2dbca Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Fri, 19 Nov 2010 13:46:21 +0100 Subject: Minor finalizations of link state checks. --- proto/static/static.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto/static/static.c') diff --git a/proto/static/static.c b/proto/static/static.c index 4f879bd..4ee2cbd 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; -- cgit v1.2.3