[Cake] Fixing iproute2 compile

Kevin Darbyshire-Bryant kevin at darbyshire-bryant.me.uk
Mon Oct 19 12:31:31 EDT 2015


That fix has already been committed. Or something darn close to it https://kau.toke.dk/git/cake/iproute2/commit/?id=ef1bbd6718c7c2d30814d5b1e3ee6882a668b6d8

--
Cheers,

Kevin at Darbyshire-Bryant.me.uk
Sent from my phone, apologies for brevity, spelling & top posting

> On 19 Oct 2015, at 17:01, Toke Høiland-Jørgensen <toke at toke.dk> wrote:
> 
> 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;
> 
> _______________________________________________
> Cake mailing list
> Cake at lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/cake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.bufferbloat.net/pipermail/cake/attachments/20151019/a91e4928/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3062 bytes
Desc: not available
URL: <https://lists.bufferbloat.net/pipermail/cake/attachments/20151019/a91e4928/attachment-0002.bin>


More information about the Cake mailing list