From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 29 16:16:02 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A8AE79DC for ; Sun, 29 Jun 2014 16:16:02 +0000 (UTC) Received: from mx1.scaleengine.net (beauharnois2.bhs1.scaleengine.net [142.4.218.15]) by mx1.freebsd.org (Postfix) with ESMTP id 81B382543 for ; Sun, 29 Jun 2014 16:16:02 +0000 (UTC) Received: from [192.168.1.2] (senat1-01.HML3.ScaleEngine.net [209.51.186.5]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 4CA67185E6 for ; Sun, 29 Jun 2014 16:15:55 +0000 (UTC) Message-ID: <53B03BDE.8020302@freebsd.org> Date: Sun, 29 Jun 2014 12:16:30 -0400 From: Allan Jude User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: ipfw pipe config bw tun0 References: In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GXnG9lkTHtJ5QVkdNQtLPQe3Mr9iakJeC" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jun 2014 16:16:02 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --GXnG9lkTHtJ5QVkdNQtLPQe3Mr9iakJeC Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 2014-06-29 10:52, Luigi Rizzo wrote: > On Sun, Jun 29, 2014 at 4:16 PM, Wojciech Puchar < > wojtek@wojtek.tensor.gdynia.pl> wrote: >=20 >> i tried to use ipfw dummynet as described in manual >> >> --- >> If a device name is specified instead of a numeric value, as in >> >> ipfw pipe 1 config bw tun0 >> >> then the transmit clock is supplied by the specified devi= ce. >> At >> the moment only the tun(4) device supports this functiona= lity, >> for use in conjunction with ppp(8). >> >> ---- >> >> >> got "no if support" error message. what i missed? >> >=20 > you missed =E2=80=8Bnothing -- it's just that no device that i know > of still implements the feature. > i implemented it 15 years ago and enabled it on the 'ed' > device driver only. >=20 > What it needed is a notification on the transmit > interrupt to kick the pipe and tell it how many > packets went out (at the time 'ed' only supported > one packet at a time, so the code might make > assumptions).=E2=80=8B >=20 > It might need a bit of redesign these days to make it > work efficiently with fast pipes and deep interface queues. >=20 > cheers > luigi > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.o= rg" >=20 If you check out the IPFW article in the FreeBSD Journal May/June issue, I have some better examples. When I get time I'll work similar examples into the handbook and maybe the man page. --=20 Allan Jude --GXnG9lkTHtJ5QVkdNQtLPQe3Mr9iakJeC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJTsDvgAAoJEJrBFpNRJZKfUKgP/2cipTTYZ+KAr9MB+BOyhEF1 Z9flNFQ61FAidKIyLRAjoJLspSphvnD0C3R6h3hI8Gi9i13W9WjgZcA7lQfXx+SL 9NxDexJB+WL6Tc0se/Oua7yQ7rcqO6lSmd2ls3rzet+mwegvQ1zj4eyJE2lu1uge rbbN8Pm72ovqTYObc9tZ7y45HPBdCHD/AtwxMZdkkMRZU7CilkMpLoD+UE/sxcbD X73Efe2i6TyVZKWD9xZPWOlkg+QI9g7VUg3/cVsr5G763ODou0qwVkEvLyhbuFAj MmB9qgKCBTuMshh9ASR4CmjVOzXhV8r5PZpgf0U/V2OeSVN5xYdmKm3IDm3c2C6T +Rp0MxPpavhBpAyQhA88qflJpfL76qY5cVtJoqeIi0q3052qlvoUDQQqqxp1r2Lg LMALhoNZv1UHpoS+XonTjNg5grzQcDV6csq36bs8Gyg9n37n2C36cZ5aCYV+3QBj a/M6Ck5vk2tT11QKKww8Mvlys5aauHuIFrmJM5gQcRCeuK/VBjcOzlXYe/dS11IR wmX+FJpPo465yUgepGwg9QudOKIEs3J7L48B24Zoahmaw7KvSlA26zUZm0WiQ/7q M7vPWIaIpqK32EzMJ+QHfGmfik9iSa6yfQwvjZ3t4oxF5hXPQVUTrgK8RDya7+KH Uqkj6OKdDfGuRZ4aUth4 =fJX4 -----END PGP SIGNATURE----- --GXnG9lkTHtJ5QVkdNQtLPQe3Mr9iakJeC--