diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-12-16 02:02:45 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-12-16 02:02:45 +0000 |
commit | 0f791a7fb6a67cf30d91775e4ae768679e14d610 (patch) | |
tree | c655fc3b31bdc44bb6a8c4bcfb90df3ce1c86496 /contrib/fwd/src/fwd.h | |
parent | a833e120b7f8a835f07e6d9bb5c37df149580468 (diff) |
contrib/fwd: rewrite rule generate to use xtables api
Diffstat (limited to 'contrib/fwd/src/fwd.h')
-rw-r--r-- | contrib/fwd/src/fwd.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/contrib/fwd/src/fwd.h b/contrib/fwd/src/fwd.h index c93c0aff90..0228daf7b6 100644 --- a/contrib/fwd/src/fwd.h +++ b/contrib/fwd/src/fwd.h @@ -24,6 +24,7 @@ #include <unistd.h> #include <stdarg.h> #include <stdlib.h> +#include <getopt.h> #include <netinet/in.h> #if 0 @@ -36,7 +37,7 @@ enum fwd_policy { FWD_P_UNSPEC = 0, FWD_P_DROP = 1, FWD_P_REJECT = 2, - FWD_P_ACCEPT = 3 + FWD_P_ACCEPT = 3 }; enum fwd_stype { @@ -103,6 +104,9 @@ struct fwd_defaults { struct fwd_zone { char *name; struct fwd_network_list *networks; + struct fwd_data *forwardings; + struct fwd_data *redirects; + struct fwd_data *rules; enum fwd_policy input; enum fwd_policy forward; enum fwd_policy output; @@ -127,6 +131,7 @@ struct fwd_redirect { struct fwd_cidr *dest_ip; struct fwd_portrange *dest_port; struct fwd_proto *proto; + int clone; /* true if rule is cloned (tcpudp -> tcp + udp) */ }; struct fwd_rule { @@ -140,6 +145,7 @@ struct fwd_rule { struct fwd_proto *proto; struct fwd_icmptype *icmp_type; enum fwd_policy target; + int clone; /* true if rule is cloned (tcpudp -> tcp + udp) */ }; struct fwd_include { |