summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e413a54)
raw | patch | inline | side by side (parent: e413a54)
author | Devid Antonio Filoni <devidfil@gmail.com> | |
Sat, 18 Oct 2008 20:01:53 +0000 (22:01 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Mon, 20 Oct 2008 06:44:02 +0000 (08:44 +0200) |
Hi,
the attached patch fix the build with glibc 2.8. Please include it in
the next version.
Thanks,
Devid Antonio Filoni
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
the attached patch fix the build with glibc 2.8. Please include it in
the next version.
Thanks,
Devid Antonio Filoni
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/libiptc/libip6tc.c | patch | blob | history |
diff --git a/src/libiptc/libip6tc.c b/src/libiptc/libip6tc.c
index b30bb28b90f2bef0c0143410537ba9b84115cc18..276b7af8fa3769eee00157277d3f887e1e7628d0 100644 (file)
--- a/src/libiptc/libip6tc.c
+++ b/src/libiptc/libip6tc.c
#include "libiptc.c"
#define BIT6(a, l) \
- ((ntohl(a->in6_u.u6_addr32[(l) / 32]) >> (31 - ((l) & 31))) & 1)
+ ((ntohl(a->s6_addr32[(l) / 32]) >> (31 - ((l) & 31))) & 1)
int
ipv6_prefix_length(const struct in6_addr *a)