Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 May 1998 18:14:40 +0200 (MET DST)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        current@FreeBSD.ORG
Subject:   IP bandwidth manager code snapshot available
Message-ID:  <199805041614.SAA06562@labinfo.iet.unipi.it>

next in thread | raw e-mail | index | archive | help
[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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805041614.SAA06562>