Can DUMMYNET handle weighting of traffic according to firewall rules?
Luigi Rizzo
rizzo at iet.unipi.it
Sat Dec 13 08:15:55 UTC 2014
On Saturday, December 13, 2014, Brett Glass <brett at lariat.net
<javascript:_e(%7B%7D,'cvml','brett at lariat.net');>> wrote:
> At 10:35 AM 12/12/2014, John Nielsen wrote:
>
> Is there a reason you can't use a separate pipe for each direction?
>>
>
> We want to limit the total amount of bandwidth consumed, based on the
> formula 2U + D <= L. If we used two pipes, there would be no way to keep
> track of the sum.
>
> What I need (and am not sure if DUMMYNET can currently supply) is a pipe
> that allows you to feed it a packet and say, "Count this X times toward the
> bandwidth limit."
>
No, as it is now dummynet cannot do what you ask. It would be a one-line
change in the kernel, plus the part to handle passing the extra parameter
(we could call it "cost") to the queue's configuration.
As usual, the UI is 10+ times bigger than the code doing the actual work
(though one could rightly blame the existing UI for not being designed for
extensibility).
Cheers
Luigi
--
-----------------------------------------+-------------------------------
Prof. Luigi RIZZO, rizzo at iet.unipi.it . Dip. di Ing. dell'Informazione
http://www.iet.unipi.it/~luigi/ . Universita` di Pisa
TEL +39-050-2211611 . via Diotisalvi 2
Mobile +39-338-6809875 . 56122 PISA (Italy)
-----------------------------------------+-------------------------------
More information about the freebsd-net
mailing list