[PATCH] ipfw pipe bandwidth parameter parser.

Julian Elischer julian at elischer.org
Mon Jun 14 22:48:56 UTC 2010


On 6/14/10 3:22 PM, Luigi Rizzo wrote:
> On Mon, Jun 14, 2010 at 11:01:43PM +0100, Ermal Lu?i wrote:
>> Hello,
>>
>> on FreeBSD-STABLE at least ipfw wrongly interprets dummynet
>> configurations of the type:
>>
>> pipe 10 config bw 1.5Mb
>>                             ^^^
>
> Given that there is an easy workaround (use bw 1500Kbit/s)
> i'd probably just leave it alone, at least for 8.1
>
> I think this behaviour (only accepting integers before the unit)
> has been there forever, and is one of the many things broken in
> the code that parses bandwidth, sizes and delays.
> I am slightly afraid of fixing it because people might have
> (broken) configurations relying on undocumented behaviour.


the answer may be to just doccument it properly.
then it is DOCUMENTED behaviour.
>
> cheers
> luigi
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"



More information about the freebsd-net mailing list