summaryrefslogtreecommitdiffstats
path: root/libiptc
diff options
context:
space:
mode:
author/C=JP/ST=JP/CN=Yasuyuki Kozakai/emailAddress=yasuyuki@netfilter.org </C=JP/ST=JP/CN=Yasuyuki Kozakai/emailAddress=yasuyuki@netfilter.org>2007-06-30 10:47:57 +0000
committer/C=JP/ST=JP/CN=Yasuyuki Kozakai/emailAddress=yasuyuki@netfilter.org </C=JP/ST=JP/CN=Yasuyuki Kozakai/emailAddress=yasuyuki@netfilter.org>2007-06-30 10:47:57 +0000
commita54381c95b2c5b56bd273336d05c565b433c6438 (patch)
treebca510f92999b0ea708c4c316e248ccf86cfb036 /libiptc
parent3673435acd1e04617ca297a958167a8843328448 (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 feb4379..574cc0a 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",