From owner-freebsd-isp Wed May 14 13:47:37 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id NAA03758 for isp-outgoing; Wed, 14 May 1997 13:47:37 -0700 (PDT) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id NAA03753 for ; Wed, 14 May 1997 13:47:33 -0700 (PDT) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id WAA26959; Wed, 14 May 1997 22:08:18 +0200 From: Luigi Rizzo Message-Id: <199705142008.WAA26959@labinfo.iet.unipi.it> Subject: Re: Limiting Bandwidth. To: mcnicholl@real.com (David Sean McNicholl) Date: Wed, 14 May 1997 22:08:18 +0200 (MET DST) Cc: freebsd-isp@FreeBSD.ORG In-Reply-To: <199705141938.TAA26472@mocara.infonaut.org> from "David Sean McNicholl" at May 14, 97 07:38:32 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Hi, > Other than dummynet ( http://www.iet.unipi.it/~luigi/ ), does anyone of > bandwidth limiting software. The obvious limitation to dummynet is that it > aonly restricts tcp. it is not difficult to limit UDP as well, you clone the two functions tcp_ip_input() and tcp_ip_output() with almost identical ones, udp_ip_input() and udp_ip_output, and establish the proper calls between the udp and ip layers. You can use the same (global) bw limit for both TCP and UDP, or set up different limits for TCP and UDP (e.g. to limit NFS or multicast traffic)... I have not the time to work on it now, but it is not complex, really. Cheers Luigi -----------------------------+-------------------------------------- Luigi Rizzo | Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it | Universita' di Pisa tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ _____________________________|______________________________________