summaryrefslogtreecommitdiffstats
path: root/src/if.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-06-22 13:08:25 +0100
committerRoy Marples <roy@marples.name>2020-06-22 13:08:25 +0100
commit7c19dd85e8024a79f0c6a4d3885cbd1fd9ed4bab (patch)
tree8891eefe68557b72429985dd9fcf0f951c2d22a8 /src/if.c
parentd836addaed114a68648dadb09e1efa07f529c57c (diff)
downloaddhcpcd-7c19dd85e8024a79f0c6a4d3885cbd1fd9ed4bab.tar.xz
linux: ignore unsupported interfaces by default, such as sit0
Diffstat (limited to 'src/if.c')
-rw-r--r--src/if.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/if.c b/src/if.c
index 04a48c3b..f867cd59 100644
--- a/src/if.c
+++ b/src/if.c
@@ -615,6 +615,8 @@ if_discover(struct dhcpcd_ctx *ctx, struct ifaddrs **ifaddrs,
}
break;
default:
+ if (if_noconf)
+ active = IF_INACTIVE;
if (active)
logwarnx("%s: unsupported"
" interface type 0x%.2x",