usbmodeswitch: Updated to v.1.2.6 from shibby's branch.
[tomato.git] / release / src / router / iproute2 / include / iptables_common.h
blobed5b9c060f0002f556a3039c3d4a3b2de6092778
1 #ifndef _IPTABLES_COMMON_H
2 #define _IPTABLES_COMMON_H
3 /* Shared definitions between ipv4 and ipv6. */
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;
29 extern char *lib_dir;
31 #ifdef NO_SHARED_LIBS
32 # ifdef _INIT
33 # define _init _INIT
34 # endif
35 extern void init_extensions(void);
36 #endif
38 #endif /*_IPTABLES_COMMON_H*/