Mercurial > hg > dhcpcd
changeset 5575:465cc5abc6d6 draft
script: ignore inactive interfaces for ordering
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Mon, 28 Dec 2020 01:59:57 +0000 |
| parents | 2a519da0f1a2 |
| children | 34d5feec8274 |
| files | src/script.c |
| diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/script.c Mon Dec 28 00:02:26 2020 +0000 +++ b/src/script.c Mon Dec 28 01:59:57 2020 +0000 @@ -392,6 +392,8 @@ 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;
