summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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