From owner-freebsd-hackers Mon May 4 10:48:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA16401 for freebsd-hackers-outgoing; Mon, 4 May 1998 10:48:58 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id KAA16381; Mon, 4 May 1998 10:48:49 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id SAA06562; Mon, 4 May 1998 18:14:40 +0200 From: Luigi Rizzo Message-Id: <199805041614.SAA06562@labinfo.iet.unipi.it> Subject: IP bandwidth manager code snapshot available To: current@FreeBSD.ORG Date: Mon, 4 May 1998 18:14:40 +0200 (MET DST) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [Bcc to -hackers in case someone is interested there, apologies for duplicates...] I have put together a few notes and patches (for 2.2.6, but should reasonably easy to port to -current as well) on my integration of the dummynet code with ipfw. You can find it at http://www.iet.unipi.it/~luigi/ip_dummynet/ The code is very close to working (it has known bugs causing panics) but i want to have some feedback and advice on how to proceed before it's too late (read: working well enough that i lose any motivation to make changes). Things i have done/plan to do that i want advice on: * added a flow_id field to m_pkthdr, following Julian suggestion. It reduces the usable size of the first mbuf (MHLEN) to 104, so it might break something that makes assumptions on MHLEN being 108 ? * changed the way to avoid loops when a packet passes through the ip_fw_chk rules multiple times. The flow_id is also a pointer to the chain entry which matched last time, and checks continue from the next rule. * the location of the ip_fw_chk() call in ip_output() could be moved ? Right now, if a pkt goes multiple times through ip_output, there is some duplication of work and probably something nasty can be done. Feedback welcome. 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/ _____________________________|______________________________________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message