iptables-1.2.9-2.3.1.src.rpm
[iptables.git] / include / iptables_common.h
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() __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 iptables_insmod(const char *modname, const char *modprobe);
18 void exit_error(enum exittype, char *, ...)__attribute__((noreturn,
19                                                           format(printf,2,3)));
20 extern const char *program_name, *program_version;
21
22 #ifdef NO_SHARED_LIBS
23 # ifdef _INIT
24 #  define _init _INIT
25 # endif
26   extern void init_extensions(void);
27 #endif
28
29 #endif /*_IPTABLES_COMMON_H*/