summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorYasuyuki KOZAKAI <yasuyuki.kozakai@toshiba.co.jp>2005-06-22 12:24:21 +0000
committerHarald Welte <laforge@gnumonks.org>2005-06-22 12:24:21 +0000
commit9867e814492275cabfbccd6b30375b0e23eb10cb (patch)
treed8b31329c2cd532ecbe017d38b18856101b25811 /include
parenta3a9c0d3e3d9df70c5ea2e64ef792e194dbfbde7 (diff)
reduce code replication of parse_interface() (Yasuyuki Kozakai)
Diffstat (limited to 'include')
-rw-r--r--include/ip6tables.h2
-rw-r--r--include/iptables.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/ip6tables.h b/include/ip6tables.h
index d4dadd88..81d99d86 100644
--- a/include/ip6tables.h
+++ b/include/ip6tables.h
@@ -137,6 +137,8 @@ enum ip6t_tryload {
extern struct ip6tables_target *find_target(const char *name, enum ip6t_tryload);
extern struct ip6tables_match *find_match(const char *name, enum ip6t_tryload, struct ip6tables_rule_match **match);
+extern void parse_interface(const char *arg, char *vianame, unsigned char *mask);
+
extern int for_each_chain(int (*fn)(const ip6t_chainlabel, int, ip6tc_handle_t *), int verbose, int builtinstoo, ip6tc_handle_t *handle);
extern int flush_entries(const ip6t_chainlabel chain, int verbose, ip6tc_handle_t *handle);
extern int delete_chain(const ip6t_chainlabel chain, int verbose, ip6tc_handle_t *handle);
diff --git a/include/iptables.h b/include/iptables.h
index 25f36aeb..f0cad8da 100644
--- a/include/iptables.h
+++ b/include/iptables.h
@@ -152,6 +152,7 @@ extern char *mask_to_dotted(const struct in_addr *mask);
extern void parse_hostnetworkmask(const char *name, struct in_addr **addrpp,
struct in_addr *maskp, unsigned int *naddrs);
extern u_int16_t parse_protocol(const char *s);
+extern void parse_interface(const char *arg, char *vianame, unsigned char *mask);
extern int do_command(int argc, char *argv[], char **table,
iptc_handle_t *handle);