Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Oct 2007 14:17:38 +0100
From:      "=?ISO-8859-1?Q?Ermal_Lu=E7i?=" <ermal.luci@gmail.com>
To:        freebsd-pf@freebsd.org, freebsd-net@freebsd.org
Subject:   [PATCH] PF+dummynet
Message-ID:  <9a542da30710280617t11e668e2o4d122998192f71c@mail.gmail.com>
In-Reply-To: <9a542da30710211232v4d3c930fg8ea778a12f3f16cb@mail.gmail.com>
References:  <9a542da30710161409o4732a77bybdf4ba35d7491bb@mail.gmail.com> <200710171043.08126.max@love2party.net> <d5992baf0710171324n65c4b171l71db8aeac445b52d@mail.gmail.com> <9a542da30710211232v4d3c930fg8ea778a12f3f16cb@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_13721_18234194.1193577458248
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Attached is the patch against -CURRENT for integrating PF with dummynet!

It gives full dummynet support in pf.conf syntax and removes dummynet
depndency to ipfw.

You can configure a pipe/queue using the same ipfw syntax the only
difference is that i call those 'dnpipe'/'dnqueue' respectivley.
GRED/RED isn't currently finished but that is a pfctl addition so not
difficult.

For dummynet i preserve ipfw style statistics so tools of ipfw can be
used here to.

Since this is PF i preserved ALTQ priotitizing of ACK, meaning on ALTQ you do
pass in quick proto tcp from any to any flags S/SA queue(pri, que)

You can do the same with dummynet queues only, since for pipes it
doesn't make much sense since they simulate a link. So yuo can do

dnpipe 10 bandwidth 100Kbit
dnqueue 10 dnpipe 10 queue 100
dnqueue 20 dnpipe 10 queue 20

pass in quick proto tcp from any to any flags S/SA dnqueue(10, 20)


Please test and give feedback.

------=_Part_13721_18234194.1193577458248--



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