Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Mar 2016 02:44:48 +0000
From:      Rasool Al-Saadi <ralsaadi@swin.edu.au>
To:        Don Lewis <truckman@freebsd.org>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>, Grenville Armitage <garmitage@swin.edu.au>, "aqm@ietf.org" <aqm@ietf.org>, "freebsd-ipfw@freebsd.org" <freebsd-ipfw@freebsd.org>
Subject:   RE: Dummynet AQM v0.1- CoDel and FQ-CoDel for FreeBSD's ipfw/dummynet 
Message-ID:  <6545444AE21C2749939E637E56594CEA3C1AC4B9@gsp-ex02.ds.swin.edu.au>
In-Reply-To: <201603062040.u26KeWoZ084554@gw.catspoiler.org>
References:  <6545444AE21C2749939E637E56594CEA3C187192@gsp-ex02.ds.swin.edu.au> <201603062040.u26KeWoZ084554@gw.catspoiler.org>

next in thread | previous in thread | raw e-mail | index | archive | help



> -----Original Message-----
> From: owner-freebsd-ipfw@freebsd.org [mailto:owner-freebsd-
> ipfw@freebsd.org] On Behalf Of Don Lewis
> Sent: Monday, 7 March 2016 7:41 AM
> To: Rasool Al-Saadi <ralsaadi@swin.edu.au>
> Cc: freebsd-net@freebsd.org; Grenville Armitage
> <garmitage@swin.edu.au>; aqm@ietf.org; freebsd-ipfw@freebsd.org
> Subject: Re: Dummynet AQM v0.1- CoDel and FQ-CoDel for FreeBSD's
> ipfw/dummynet
> 
> On 26 Feb, Rasool Al-Saadi wrote:
> > Dear all,
> >
> > I would like to announce that we (myself and Grenville Armitage)
> > released Dummynet AQM v0.1, which is an independent implementation
> of
> > CoDel and FQ-CoDel for FreeBSD's ipfw/dummynet framework, based on
> the
> > IETF  CoDel [1] and FQ-CoDel [2] Internet-Drafts. We prepared patches
> > for FreeBSD11-CURRENT-r295345  and FreeBSD 10.x-RELEASE (10.0, 10.1,
> > 10.2), and a technical report  of our implementation.
> >
> > Patches and documentation can be found in:
> > http://caia.swin.edu.au/freebsd/aqm
> 
> The FreeBSD 10 patch applies cleanly to FreeBSD 10.3-PRERELEASE, but the
> build fails on i386:
> 
> /usr/src/sbin/ipfw/dummynet.c:166:5: error: format specifies type 'long' but
> the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat]
>                                 ep->par[0],
>                                 ^~~~~~~~~~
> /usr/src/sbin/ipfw/dummynet.c:167:5: error: format specifies type 'long' but
> the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat]
>                                 ep->par[1] );
>                                 ^~~~~~~~~~
> /usr/src/sbin/ipfw/dummynet.c:177:5: error: format specifies type 'long' but
> the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat]
>                                 ep->par[0],
>                                 ^~~~~~~~~~
> /usr/src/sbin/ipfw/dummynet.c:178:5: error: format specifies type 'long' but
> the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat]
>                                 ep->par[1],
>                                 ^~~~~~~~~~
> /usr/src/sbin/ipfw/dummynet.c:179:5: error: format specifies type 'long' but
> the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat]
>                                 ep->par[3],
>                                 ^~~~~~~~~~
> /usr/src/sbin/ipfw/dummynet.c:180:5: error: format specifies type 'long' but
> the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat]
>                                 ep->par[4],
>                                 ^~~~~~~~~~
> /usr/src/sbin/ipfw/dummynet.c:181:5: error: format specifies type 'long' but
> the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat]
>                                 ep->par[5]
>                                 ^~~~~~~~~~
> 
> 
> The proper fix for this on FreeBSD is to cast these values to intmax_t and use
> the %jd printf format.
> 

Thanks for testing the patch and fixing the problem. We will apply your fix to the next version of our patch.

Regards,
Rasool




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6545444AE21C2749939E637E56594CEA3C1AC4B9>