[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-pf
Subject:    [PATCH] PF+dummynet
From:       "=?ISO-8859-1?Q?Ermal_Lu=E7i?=" <ermal.luci () gmail ! com>
Date:       2007-10-28 13:17:38
Message-ID: 9a542da30710280617t11e668e2o4d122998192f71c () mail ! gmail ! com
[Download RAW message or body]


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.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic