From owner-freebsd-pf@FreeBSD.ORG Sun Oct 28 13:45:59 2007 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 684A416A41A for ; Sun, 28 Oct 2007 13:45:59 +0000 (UTC) (envelope-from ermal.luci@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.229]) by mx1.freebsd.org (Postfix) with ESMTP id 16FF513C4C8 for ; Sun, 28 Oct 2007 13:45:58 +0000 (UTC) (envelope-from ermal.luci@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so1205457wxd for ; Sun, 28 Oct 2007 06:45:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=341zniUK809ge+0WaVTEGKKZ+4zK7jhLFCaSVp2LHJ8=; b=soQEZ5HTlt42fCLAJWM6ZtHwufh3KEN5xza9FMeSjfnzcfBms27/r0dKW9QRpBmgR4aPaiadEpoiHTAPJQ333aaCmVCEkl7J+pLQVb8fACz4tNbcIbM3EsNUkVZvh63ZeV5qJhHol6cPBfwxKluSgE9uUnrBND3eFuAMcl9ByLE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Gp3dPXZ9PUaSQxq6tEi2flnJM8uKDorluhyZiOl5D9x5NKXdToqyZBfskDjgwiCb7EGhrd7HVjuPkjQQqldbUsMxoh5c3k4E+rDUsmDZHLoK7JYaqJepSukhg4Pha6Tgz9yckdN+SvozReF0tPG+Sr7xrCvvsbp911m9V6Ub2Kk= Received: by 10.70.68.11 with SMTP id q11mr8717054wxa.1193577458293; Sun, 28 Oct 2007 06:17:38 -0700 (PDT) Received: by 10.70.73.1 with HTTP; Sun, 28 Oct 2007 06:17:38 -0700 (PDT) Message-ID: <9a542da30710280617t11e668e2o4d122998192f71c@mail.gmail.com> Date: Sun, 28 Oct 2007 14:17:38 +0100 From: "=?ISO-8859-1?Q?Ermal_Lu=E7i?=" To: freebsd-pf@freebsd.org, freebsd-net@freebsd.org In-Reply-To: <9a542da30710211232v4d3c930fg8ea778a12f3f16cb@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_13721_18234194.1193577458248" References: <9a542da30710161409o4732a77bybdf4ba35d7491bb@mail.gmail.com> <200710171043.08126.max@love2party.net> <9a542da30710211232v4d3c930fg8ea778a12f3f16cb@mail.gmail.com> X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: [PATCH] PF+dummynet X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2007 13:45:59 -0000 ------=_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--