X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fiptables.h;fp=include%2Fiptables.h;h=bf71e52672c6b766ad2c1c38a44c2b0c26a8a8c4;hb=782ed68bce7c9b3cc29eb4351ec13ede40a7ee49;hp=f0cad8daa672fa0039078fe7ed7df546044f2f8f;hpb=2e293f94e43325cb8cc719e27b43e647842c046d;p=iptables.git diff --git a/include/iptables.h b/include/iptables.h index f0cad8d..bf71e52 100644 --- a/include/iptables.h +++ b/include/iptables.h @@ -162,6 +162,7 @@ extern struct iptables_target *iptables_targets; enum ipt_tryload { DONT_LOAD, + DURING_LOAD, TRY_LOAD, LOAD_MUST_SUCCEED }; @@ -175,4 +176,13 @@ extern int flush_entries(const ipt_chainlabel chain, int verbose, iptc_handle_t *handle); extern int for_each_chain(int (*fn)(const ipt_chainlabel, int, iptc_handle_t *), int verbose, int builtinstoo, iptc_handle_t *handle); + +/* kernel revision handling */ +extern int kernel_version; +extern void get_kernel_version(void); +#define LINUX_VERSION(x,y,z) (0x10000*(x) + 0x100*(y) + z) +#define LINUX_VERSION_MAJOR(x) (((x)>>16) & 0xFF) +#define LINUX_VERSION_MINOR(x) (((x)>> 8) & 0xFF) +#define LINUX_VERSION_PATCH(x) ( (x) & 0xFF) + #endif /*_IPTABLES_USER_H*/