]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
script: ignore inactive interfaces for ordering
authorRoy Marples <roy@marples.name>
Mon, 28 Dec 2020 01:59:57 +0000 (01:59 +0000)
committerRoy Marples <roy@marples.name>
Mon, 28 Dec 2020 01:59:57 +0000 (01:59 +0000)
src/script.c

index bf1e5152b7a888af6d23b941ea15f4d9b7b44361..5f404eac456a9136222bdb80a4b8737e8b71ef91 100644 (file)
@@ -392,6 +392,8 @@ make_env(struct dhcpcd_ctx *ctx, const struct interface *ifp,
 
        rb_tree_init(&ifaces, &rt_compare_proto_ops);
        TAILQ_FOREACH(ifp2, ifp->ctx->ifaces, next) {
+               if (!ifp2->active)
+                       continue;
                rt = rt_new(UNCONST(ifp2));
                if (rt == NULL)
                        goto eexit;