X-Git-Url: http://git.archive.openwrt.org/?p=project%2Ffirewall3.git;a=blobdiff_plain;f=forwards.c;h=9f658fc60da24819462ed7f5c2eba44e14b8b31e;hp=9abe4bf1d95302b14543175ad925c03cced34b59;hb=fe3ecee341da8542aa25b962dcb8bcc628fcdd1e;hpb=275a37dbf280bd471ebb2c673267c49a81071bbb diff --git a/forwards.c b/forwards.c index 9abe4bf..9f658fc 100644 --- a/forwards.c +++ b/forwards.c @@ -19,12 +19,14 @@ #include "forwards.h" -static struct fw3_option forward_opts[] = { +const struct fw3_option fw3_forward_opts[] = { FW3_OPT("name", string, forward, name), FW3_OPT("family", family, forward, family), FW3_OPT("src", device, forward, src), FW3_OPT("dest", device, forward, dest), + + { } }; @@ -51,7 +53,7 @@ fw3_load_forwards(struct fw3_state *state, struct uci_package *p) memset(forward, 0, sizeof(*forward)); - fw3_parse_options(forward, forward_opts, ARRAY_SIZE(forward_opts), s); + fw3_parse_options(forward, fw3_forward_opts, s); if (forward->src.invert || forward->dest.invert) {