diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-09-08 16:07:16 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-09-08 16:07:16 +0200 |
commit | 891d5790b3f4caeed80f1449d280617c54df8837 (patch) | |
tree | 6328d4a4a0d4bffb76fc5ecf297b4386a1257191 /include/xtables.h.in | |
parent | bf42cf92ea0c53e5470a20d62d00e5e83379f4d5 (diff) | |
parent | 153c23d9b14285b24aae3e96da0b547dcc7ee051 (diff) |
Merge branch 'stable'
Diffstat (limited to 'include/xtables.h.in')
-rw-r--r-- | include/xtables.h.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/xtables.h.in b/include/xtables.h.in index d50df79a..28e29337 100644 --- a/include/xtables.h.in +++ b/include/xtables.h.in @@ -477,6 +477,14 @@ extern void xtables_save_string(const char *value); extern const struct xtables_pprot xtables_chain_protos[]; extern u_int16_t xtables_parse_protocol(const char *s); +/* 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) + /* xtoptions.c */ extern void xtables_option_metavalidate(const char *, const struct xt_option_entry *); |