Mercurial > hg > dhcpcd
comparison src/script.c @ 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 | 4fe5c2a71254 |
| children | 4da45107d87a |
comparison
equal
deleted
inserted
replaced
| 5574:2a519da0f1a2 | 5575:465cc5abc6d6 |
|---|---|
| 390 if (ifp->ctx->options & DHCPCD_DUMPLEASE) | 390 if (ifp->ctx->options & DHCPCD_DUMPLEASE) |
| 391 goto dumplease; | 391 goto dumplease; |
| 392 | 392 |
| 393 rb_tree_init(&ifaces, &rt_compare_proto_ops); | 393 rb_tree_init(&ifaces, &rt_compare_proto_ops); |
| 394 TAILQ_FOREACH(ifp2, ifp->ctx->ifaces, next) { | 394 TAILQ_FOREACH(ifp2, ifp->ctx->ifaces, next) { |
| 395 if (!ifp2->active) | |
| 396 continue; | |
| 395 rt = rt_new(UNCONST(ifp2)); | 397 rt = rt_new(UNCONST(ifp2)); |
| 396 if (rt == NULL) | 398 if (rt == NULL) |
| 397 goto eexit; | 399 goto eexit; |
| 398 if (rb_tree_insert_node(&ifaces, rt) != rt) | 400 if (rb_tree_insert_node(&ifaces, rt) != rt) |
| 399 goto eexit; | 401 goto eexit; |
