summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/iproute2/iproute2/0004-ipntable-more-fixes-for-ppc64.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/iproute2/iproute2/0004-ipntable-more-fixes-for-ppc64.patch')
-rw-r--r--meta/recipes-connectivity/iproute2/iproute2/0004-ipntable-more-fixes-for-ppc64.patch68
1 files changed, 0 insertions, 68 deletions
diff --git a/meta/recipes-connectivity/iproute2/iproute2/0004-ipntable-more-fixes-for-ppc64.patch b/meta/recipes-connectivity/iproute2/iproute2/0004-ipntable-more-fixes-for-ppc64.patch
deleted file mode 100644
index e841709867..0000000000
--- a/meta/recipes-connectivity/iproute2/iproute2/0004-ipntable-more-fixes-for-ppc64.patch
+++ /dev/null
@@ -1,68 +0,0 @@
1Upstream-Status: Backport
2
3From ae70d9665615ae723a108947aa60b5f65caffab2 Mon Sep 17 00:00:00 2001
4From: Stephen Hemminger <stephen@networkplumber.org>
5Date: Mon, 4 Mar 2013 13:59:39 -0800
6Subject: [PATCH] ipntable: more fixes for ppc64
7
8Not all arch have sizeof(unsigned long long) == sizeof(__u64)
9---
10 ip/ipntable.c | 30 ++++++++++++++++++++----------
11 1 file changed, 20 insertions(+), 10 deletions(-)
12
13diff --git a/ip/ipntable.c b/ip/ipntable.c
14index a1a3c26..67b199e 100644
15--- a/ip/ipntable.c
16+++ b/ip/ipntable.c
17@@ -560,28 +560,38 @@ int print_ntable(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
18 fprintf(fp, " ");
19 fprintf(fp, "stats ");
20
21- fprintf(fp, "allocs %llu ", ndts->ndts_allocs);
22- fprintf(fp, "destroys %llu ", ndts->ndts_destroys);
23- fprintf(fp, "hash_grows %llu ", ndts->ndts_hash_grows);
24+ fprintf(fp, "allocs %llu ",
25+ (unsigned long long) ndts->ndts_allocs);
26+ fprintf(fp, "destroys %llu ",
27+ (unsigned long long) ndts->ndts_destroys);
28+ fprintf(fp, "hash_grows %llu ",
29+ (unsigned long long) ndts->ndts_hash_grows);
30
31 fprintf(fp, "%s", _SL_);
32 fprintf(fp, " ");
33
34- fprintf(fp, "res_failed %llu ", ndts->ndts_res_failed);
35- fprintf(fp, "lookups %llu ", ndts->ndts_lookups);
36- fprintf(fp, "hits %llu ", ndts->ndts_hits);
37+ fprintf(fp, "res_failed %llu ",
38+ (unsigned long long) ndts->ndts_res_failed);
39+ fprintf(fp, "lookups %llu ",
40+ (unsigned long long) ndts->ndts_lookups);
41+ fprintf(fp, "hits %llu ",
42+ (unsigned long long) ndts->ndts_hits);
43
44 fprintf(fp, "%s", _SL_);
45 fprintf(fp, " ");
46
47- fprintf(fp, "rcv_probes_mcast %llu ", ndts->ndts_rcv_probes_mcast);
48- fprintf(fp, "rcv_probes_ucast %llu ", ndts->ndts_rcv_probes_ucast);
49+ fprintf(fp, "rcv_probes_mcast %llu ",
50+ (unsigned long long) ndts->ndts_rcv_probes_mcast);
51+ fprintf(fp, "rcv_probes_ucast %llu ",
52+ (unsigned long long) ndts->ndts_rcv_probes_ucast);
53
54 fprintf(fp, "%s", _SL_);
55 fprintf(fp, " ");
56
57- fprintf(fp, "periodic_gc_runs %llu ", ndts->ndts_periodic_gc_runs);
58- fprintf(fp, "forced_gc_runs %llu ", ndts->ndts_forced_gc_runs);
59+ fprintf(fp, "periodic_gc_runs %llu ",
60+ (unsigned long long) ndts->ndts_periodic_gc_runs);
61+ fprintf(fp, "forced_gc_runs %llu ",
62+ (unsigned long long) ndts->ndts_forced_gc_runs);
63
64 fprintf(fp, "%s", _SL_);
65 }
66--
671.7.9.7
68