From owner-freebsd-net@FreeBSD.ORG Fri Mar 31 02:43:45 2006 Return-Path: X-Original-To: net@freebsd.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CBC016A400 for ; Fri, 31 Mar 2006 02:43:45 +0000 (UTC) (envelope-from taka@wide.ad.jp) Received: from asahikawa.wide.ad.jp (fs.asahikawa.wide.ad.jp [203.178.141.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5689B43D48 for ; Fri, 31 Mar 2006 02:43:43 +0000 (GMT) (envelope-from taka@wide.ad.jp) Received: from [133.11.123.252] (dhcpw252.nc.u-tokyo.ac.jp [133.11.123.252]) by asahikawa.wide.ad.jp (Postfix) with ESMTP id 992BFA90B; Fri, 31 Mar 2006 11:13:13 +0900 (JST) Message-ID: <442C9756.50901@wide.ad.jp> Date: Fri, 31 Mar 2006 11:43:34 +0900 From: Takashi Okumura Organization: Asahikawa Medical College/University of Pittsburgh User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: ja, en-us, en MIME-Version: 1.0 To: Mikhail Teterin References: <200603301657.43218.mi+mx@aldan.algebra.com> In-Reply-To: <200603301657.43218.mi+mx@aldan.algebra.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: net@freebsd.org Subject: Re: Is there an API for ipfw? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Mar 2006 02:43:45 -0000 hi, although it is still in alpha quality, we have a library, named libnetnice, which i think is the best match for your purpose. http://www.netnice.org http://sourceforge.net/projects/netnice if interested, please let me know. or, you may join our libnetnice ML. http://sourceforge.net/mailarchive/forum.php?forum_id=46821 thanks, -- taka Mikhail Teterin wrote: > Hi! > > I'm writing an application that, needs to be able to quickly alter the > bandwidth between another machine and the host. > > The only way I can do that -- without another machine's cooperation -- is by > using the firewall, such as the dummynet functionality of ipfw. > > Is there any way to create/alter such a pipe from a C-program without using > system("ipfw ....")? > > If not ipfw, perhaps, other firewall modules in FreeBSD-6.x? > > Thanks a lot! > > -mi >