path: root/include/iptables.h
diff options
authorJan Engelhardt <>2011-09-03 14:27:55 +0200
committerJan Engelhardt <>2011-09-03 14:27:55 +0200
commitf56b8a8bf4b1041cb875fd8439778f35276bdb30 (patch)
tree493341214fb88c923f3d44bb78aa13a0e860a449 /include/iptables.h
parent751da923262746bf8fd3195e178504fb18c37dc5 (diff)
iptables: move kernel version find routing into libxtables
That way, the remaining unreferenced symbols that do appear in libipt_DNAT and libipt_SNAT as part of the new check can be resolved, and the ugly -rdynamic hack can finally be removed. Signed-off-by: Jan Engelhardt <>
Diffstat (limited to 'include/iptables.h')
1 files changed, 0 insertions, 8 deletions
diff --git a/include/iptables.h b/include/iptables.h
index 65b32909..89217e29 100644
--- a/include/iptables.h
+++ b/include/iptables.h
@@ -18,14 +18,6 @@ extern int for_each_chain4(int (*fn)(const ipt_chainlabel, int, struct iptc_hand
extern void print_rule4(const struct ipt_entry *e,
struct iptc_handle *handle, const char *chain, int counters);
-/* 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)
extern struct xtables_globals iptables_globals;
#endif /*_IPTABLES_USER_H*/