summaryrefslogtreecommitdiffstats
path: root/include/xtables.h
diff options
context:
space:
mode:
authorYasuyuki KOZAKAI <yasuyuki@netfilter.org>2007-07-24 06:39:40 +0000
committerYasuyuki KOZAKAI <yasuyuki@netfilter.org>2007-07-24 06:39:40 +0000
commita3732db1280f790b8e26b41bdcbe8b5f92b7f51b (patch)
treefc96ba316a6bc2045f20e218f473b92675c28070 /include/xtables.h
parent68c79151aa8885961c70821456ad626cdc6afff3 (diff)
Moves all declarations in iptables_common.h to xtables.h.
Diffstat (limited to 'include/xtables.h')
-rw-r--r--include/xtables.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/xtables.h b/include/xtables.h
index 43de25ce..231f514f 100644
--- a/include/xtables.h
+++ b/include/xtables.h
@@ -211,4 +211,35 @@ extern u_int16_t parse_port(const char *port, const char *proto);
extern void
parse_interface(const char *arg, char *vianame, unsigned char *mask);
+enum exittype {
+ OTHER_PROBLEM = 1,
+ PARAMETER_PROBLEM,
+ VERSION_PROBLEM,
+ RESOURCE_PROBLEM
+};
+
+/* this is a special 64bit data type that is 8-byte aligned */
+#define aligned_u64 unsigned long long __attribute__((aligned(8)))
+
+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);
+void exit_error(enum exittype, char *, ...)__attribute__((noreturn,
+ format(printf,2,3)));
+extern const char *program_name, *program_version;
+
+#define _init __attribute__((constructor)) my_init
+#ifdef NO_SHARED_LIBS
+# ifdef _INIT
+# undef _init
+# define _init _INIT
+# endif
+ extern void init_extensions(void);
+#endif
+
+#define __be32 u_int32_t
+#define __le32 u_int32_t
+#define __be16 u_int16_t
+#define __le16 u_int16_t
+
#endif /* _XTABLES_H */