From b382a5a3b96a944d1621d3708ad8293a5be7aab4 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 3 Jan 2014 10:16:42 +0100 Subject: fix ifindex detection --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/config.c b/src/config.c index 98a826f..ed80bef 100644 --- a/src/config.c +++ b/src/config.c @@ -497,7 +497,7 @@ int config_parse_interface(void *data, size_t len, const char *name, bool overwr } } - iface->ignore = (iface->ifindex = if_nametoindex(iface->ifname)) < 0; + iface->ignore = (iface->ifindex = if_nametoindex(iface->ifname)) <= 0; return 0; err: -- cgit v1.2.3