diff options
author | Steven Barth <steven@midlink.org> | 2014-01-03 10:16:42 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-01-03 10:16:42 +0100 |
commit | b382a5a3b96a944d1621d3708ad8293a5be7aab4 (patch) | |
tree | 0fd8783050caf9fe091ae48e9843f57c6365d83d /src/config.c | |
parent | 0903c8170e762a8ab9fa45d521b7d509a0acdaa2 (diff) |
fix ifindex detection
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: |