Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
* [Cake] Fixing iproute2 compile
@ 2015-10-19 16:01 Toke Høiland-Jørgensen
  2015-10-19 16:31 ` Kevin Darbyshire-Bryant
  2015-10-19 16:41 ` Kevin Darbyshire-Bryant
  0 siblings, 2 replies; 9+ messages in thread
From: Toke Høiland-Jørgensen @ 2015-10-19 16:01 UTC (permalink / raw)
  To: cake

So finally got iproute2 to compile out of the kau.toke.dk repo. The
patch below was needed to cake. Posting it here rather than just
committing in the hope of getting someone (Jonathan?) to take a look at
it and fix it everywhere it's needed :)

-Toke

diff --git a/tc/q_cake.c b/tc/q_cake.c
index 4d64405..1384a46 100644
--- a/tc/q_cake.c
+++ b/tc/q_cake.c
@@ -495,7 +496,7 @@ static int cake_print_xstats(struct qdisc_util *qu, FILE *f,
 
 	} else if (stnc->version >= 1 && stnc->version < 0xFF
 				&& stnc->max_tins == TC_CAKE_MAX_TINS
-				&& RTA_PAYLOAD(xstats) >= offsetof(*stnc, capacity_estimate))
+				&& RTA_PAYLOAD(xstats) >= offsetof(typeof(*stnc), capacity_estimate))
 	{
 		int i;
 

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-10-21 11:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-19 16:01 [Cake] Fixing iproute2 compile Toke Høiland-Jørgensen
2015-10-19 16:31 ` Kevin Darbyshire-Bryant
2015-10-20 15:33   ` Toke Høiland-Jørgensen
2015-10-19 16:41 ` Kevin Darbyshire-Bryant
2015-10-19 21:17   ` Kevin Darbyshire-Bryant
2015-10-20  9:13     ` Kevin Darbyshire-Bryant
2015-10-20 15:38       ` Toke Høiland-Jørgensen
2015-10-21 10:31         ` Kevin Darbyshire-Bryant
2015-10-21 11:38           ` Toke Høiland-Jørgensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox