Skip to content

Commit 8174814

Browse files
committed
utils: persist effective extra_src and extra_dest options in state file
Signed-off-by: Jo-Philipp Wich <[email protected]>
1 parent 72a486f commit 8174814

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

utils.c

+16
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,22 @@ write_zone_uci(struct uci_context *ctx, struct fw3_zone *z,
569569
}
570570
}
571571

572+
if (z->extra_src)
573+
{
574+
ptr.o = NULL;
575+
ptr.option = "extra_src";
576+
ptr.value = z->extra_src;
577+
uci_set(ctx, &ptr);
578+
}
579+
580+
if (z->extra_dest)
581+
{
582+
ptr.o = NULL;
583+
ptr.option = "extra_dest";
584+
ptr.value = z->extra_dest;
585+
uci_set(ctx, &ptr);
586+
}
587+
572588
sprintf(buf, "0x%x", z->flags[0]);
573589
ptr.o = NULL;
574590
ptr.option = "__flags_v4";

0 commit comments

Comments
 (0)