net[shemminger]!shemminger | 1ffd7fd | 2005-01-17 23:26:23 +0000 | [diff] [blame] | 1 | #ifndef _IPTABLES_COMMON_H |
| 2 | #define _IPTABLES_COMMON_H |
| 3 | /* Shared definitions between ipv4 and ipv6. */ |
| 4 | |
| 5 | enum exittype { |
| 6 | OTHER_PROBLEM = 1, |
| 7 | PARAMETER_PROBLEM, |
| 8 | VERSION_PROBLEM |
| 9 | }; |
| 10 | extern void exit_printhelp(void) __attribute__((noreturn)); |
| 11 | extern void exit_tryhelp(int) __attribute__((noreturn)); |
| 12 | int check_inverse(const char option[], int *invert, int *optind, int argc); |
| 13 | extern int string_to_number(const char *, |
| 14 | unsigned int, |
| 15 | unsigned int, |
| 16 | unsigned int *); |
| 17 | extern int string_to_number_l(const char *, |
| 18 | unsigned long int, |
| 19 | unsigned long int, |
| 20 | unsigned long *); |
| 21 | extern int string_to_number_ll(const char *, |
| 22 | unsigned long long int, |
| 23 | unsigned long long int, |
| 24 | unsigned long long *); |
| 25 | extern int iptables_insmod(const char *modname, const char *modprobe); |
| 26 | void exit_error(enum exittype, char *, ...)__attribute__((noreturn, |
| 27 | format(printf,2,3))); |
| 28 | extern const char *program_name, *program_version; |
osdl.net!shemminger | b6d5f02 | 2005-03-30 18:43:30 +0000 | [diff] [blame] | 29 | extern char *lib_dir; |
net[shemminger]!shemminger | 1ffd7fd | 2005-01-17 23:26:23 +0000 | [diff] [blame] | 30 | |
| 31 | #ifdef NO_SHARED_LIBS |
| 32 | # ifdef _INIT |
| 33 | # define _init _INIT |
| 34 | # endif |
| 35 | extern void init_extensions(void); |
| 36 | #endif |
| 37 | |
| 38 | #endif /*_IPTABLES_COMMON_H*/ |