From 7d5cc229064b0e718046b9ecaebad3426dfff15f Mon Sep 17 00:00:00 2001 From: Yasuyuki KOZAKAI Date: Sat, 30 Jun 2007 10:47:57 +0000 Subject: Removes KERNEL_64_USERSPACE_32 The recent kernel has compat layer for iptables. It doesn't have compat layer for libipq and ip6tables, but ip6tables with KERNEL_64_USERSPACE_32 is still broken. We should fix kernel instead of fixing them if and when we want use their 32bit binary with 64bit kernel. --- libiptc/libiptc.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'libiptc') diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c index feb4379c..574cc0ab 100644 --- a/libiptc/libiptc.c +++ b/libiptc/libiptc.c @@ -2170,22 +2170,6 @@ TC_COMMIT(TC_HANDLE_T *handle) } } - -#ifdef KERNEL_64_USERSPACE_32 - { - /* Kernel will think that pointer should be 64-bits, and get - padding. So we accomodate here (assumption: alignment of - `counters' is on 64-bit boundary). */ - u_int64_t *kernptr = (u_int64_t *)&newcounters->counters; - if ((unsigned long)&newcounters->counters % 8 != 0) { - fprintf(stderr, - "counters alignment incorrect! Mail rusty!\n"); - abort(); - } - *kernptr = newcounters->counters; - } -#endif /* KERNEL_64_USERSPACE_32 */ - #ifdef IPTC_DEBUG2 { int fd = open("/tmp/libiptc-so_set_add_counters.blob", -- cgit v1.2.3