From 79dee0702b18c8ea1d1f7a2b1f6b29349466986b Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 2 May 2000 16:45:16 +0000 Subject: IPv6 enhancements. --- include/iptables_common.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/iptables_common.h (limited to 'include/iptables_common.h') diff --git a/include/iptables_common.h b/include/iptables_common.h new file mode 100644 index 00000000..90ca74d7 --- /dev/null +++ b/include/iptables_common.h @@ -0,0 +1,18 @@ +#ifndef _IPTABLES_COMMON_H +#define _IPTABLES_COMMON_H +/* Shared definitions between ipv4 and ipv6. */ + +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); +extern int string_to_number(const char *, int, int); +void exit_error(enum exittype, char *, ...)__attribute__((noreturn, + format(printf,2,3))); +extern const char *program_name, *program_version; + +#endif /*_IPTABLES_COMMON_H*/ -- cgit v1.2.3