diff 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
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;