summaryrefslogtreecommitdiffstats
path: root/include/arptables_common.h
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2003-06-09 20:47:32 +0000
committerBart De Schuymer <bdschuym@pandora.be>2003-06-09 20:47:32 +0000
commit369afc14de1d89ff5627ff4c5f72f6f839244b50 (patch)
tree6fb674c7e732907f9bfa07ee7df4b34c28b8bd8d /include/arptables_common.h
*** empty log message ***
Diffstat (limited to 'include/arptables_common.h')
-rw-r--r--include/arptables_common.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/arptables_common.h b/include/arptables_common.h
new file mode 100644
index 0000000..8150ee0
--- /dev/null
+++ b/include/arptables_common.h
@@ -0,0 +1,23 @@
+#ifndef _ARPTABLES_COMMON_H
+#define _ARPTABLES_COMMON_H
+
+enum exittype {
+ OTHER_PROBLEM = 1,
+ PARAMETER_PROBLEM,
+ VERSION_PROBLEM
+};
+extern void exit_printhelp() __attribute__((noreturn));
+extern void exit_tryhelp(int) __attribute__((noreturn));
+int check_inverse(const char option[], int *invert, int *optind, int argc);
+extern int string_to_number(const char *,
+ unsigned int,
+ unsigned int,
+ unsigned int *);
+extern int iptables_insmod(const char *modname, const char *modprobe);
+void exit_error(enum exittype, char *, ...)__attribute__((noreturn,
+ format(printf,2,3)));
+extern const char *program_name, *program_version;
+
+ extern void init_extensions(void);
+
+#endif /*_IPTABLES_COMMON_H*/