]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
linux: ignore unsupported interfaces by default, such as sit0
authorRoy Marples <roy@marples.name>
Mon, 22 Jun 2020 12:08:25 +0000 (13:08 +0100)
committerRoy Marples <roy@marples.name>
Mon, 22 Jun 2020 12:08:25 +0000 (13:08 +0100)
src/if.c

index 04a48c3b844c8a0c655b064fec815bc049309c9b..f867cd5900b1425583d1251841f2137bfa6ce71e 100644 (file)
--- 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",