summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-06-22 19:57:43 +0000
committerMike Frysinger <vapier@gentoo.org>2004-06-22 19:57:43 +0000
commit380c8bb447547de86d6afb50df81fbd3a1c6ed47 (patch)
treeea640bd887046d3317e5e496d2b52dddf4364664 /sys-apps/iproute2/files/2.6.7.20040608-misc-deb-fixes.patch
parenttemporary band-aid for bug 53680, since mips users are hitting this quite a bit. (diff)
downloadgentoo-2-380c8bb447547de86d6afb50df81fbd3a1c6ed47.tar.gz
gentoo-2-380c8bb447547de86d6afb50df81fbd3a1c6ed47.tar.bz2
gentoo-2-380c8bb447547de86d6afb50df81fbd3a1c6ed47.zip
fix #54708
Diffstat (limited to 'sys-apps/iproute2/files/2.6.7.20040608-misc-deb-fixes.patch')
-rw-r--r--sys-apps/iproute2/files/2.6.7.20040608-misc-deb-fixes.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/sys-apps/iproute2/files/2.6.7.20040608-misc-deb-fixes.patch b/sys-apps/iproute2/files/2.6.7.20040608-misc-deb-fixes.patch
new file mode 100644
index 000000000000..8f4dc393e72f
--- /dev/null
+++ b/sys-apps/iproute2/files/2.6.7.20040608-misc-deb-fixes.patch
@@ -0,0 +1,23 @@
+--- iproute-20010824.orig/tc/tc_qdisc.c
++++ iproute-20010824/tc/tc_qdisc.c
+@@ -245,7 +245,7 @@
+ fprintf(fp, "\n");
+ if (show_stats) {
+ if (tb[TCA_STATS]) {
+- if (RTA_PAYLOAD(tb[TCA_STATS]) < sizeof(struct tc_stats))
++ if (RTA_PAYLOAD(tb[TCA_STATS]) < offsetof(struct tc_stats,backlog)+sizeof(((struct tc_stats*)0)->backlog))
+ fprintf(fp, "statistics truncated");
+ else {
+ struct tc_stats st;
+--- iproute-20010824.orig/include-glibc/glibc-bugs.h
++++ iproute-20010824/include-glibc/glibc-bugs.h
+@@ -12,9 +12,6 @@
+
+ #include <linux/types.h>
+
+-typedef __u16 in_port_t;
+-typedef __u32 in_addr_t;
+-
+ #endif
+
+ #endif