1 #ifndef _IPTABLES_COMMON_H
2 #define _IPTABLES_COMMON_H
3 /* Shared definitions between ipv4 and ipv6. */
12 /* this is a special 64bit data type that is 8-byte aligned */
13 #define aligned_u64 unsigned long long __attribute__((aligned(8)))
15 extern void exit_printhelp() __attribute__((noreturn));
16 extern void exit_tryhelp(int) __attribute__((noreturn));
17 int check_inverse(const char option[], int *invert, int *optind, int argc);
18 extern int string_to_number(const char *,
22 extern int string_to_number_l(const char *,
26 extern int string_to_number_ll(const char *,
27 unsigned long long int,
28 unsigned long long int,
29 unsigned long long *);
31 iptables_insmod(const char *modname, const char *modprobe, int quiet);
32 extern int load_iptables_ko(const char *modprobe, int quiet);
33 void exit_error(enum exittype, char *, ...)__attribute__((noreturn,
35 extern const char *program_name, *program_version;
38 #define _init __attribute__((constructor)) my_init
44 extern void init_extensions(void);
47 #define __be32 u_int32_t
48 #define __le32 u_int32_t
49 #define __be16 u_int16_t
50 #define __le16 u_int16_t
52 #endif /*_IPTABLES_COMMON_H*/