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(void) __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 *);
30 extern int iptables_insmod(const char *modname, const char *modprobe);
31 extern int load_iptables_ko(const char *modprobe);
32 void exit_error(enum exittype, char *, ...)__attribute__((noreturn,
34 extern const char *program_name, *program_version;
37 #define _init __attribute__((constructor)) my_init
43 extern void init_extensions(void);
46 #define __be32 u_int32_t
47 #define __le32 u_int32_t
48 #define __be16 u_int16_t
49 #define __le16 u_int16_t
51 #endif /*_IPTABLES_COMMON_H*/