summaryrefslogtreecommitdiffstats
path: root/libiptc
diff options
context:
space:
mode:
authorYasuyuki KOZAKAI <yasuyuki@netfilter.org>2007-06-30 10:47:57 +0000
committerYasuyuki KOZAKAI <yasuyuki@netfilter.org>2007-06-30 10:47:57 +0000
commit7d5cc229064b0e718046b9ecaebad3426dfff15f (patch)
treebca510f92999b0ea708c4c316e248ccf86cfb036 /libiptc
parentfde395370ead306b770a3d4685e4bc1d6972266d (diff)
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.
Diffstat (limited to 'libiptc')
-rw-r--r--libiptc/libiptc.c16
1 files changed, 0 insertions, 16 deletions
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",