Date: Mon, 11 May 1998 12:07:08 +0200 (MET DST) From: Luigi Rizzo <luigi@labinfo.iet.unipi.it> To: current@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: dummynet is working (more or less) Message-ID: <199805111007.MAA17553@labinfo.iet.unipi.it>
next in thread | raw e-mail | index | archive | help
The updated code for dummynet is available at http://www.iet.unipi.it/~luigi/ip_dummynet/ i have it mostly working here on 2.2.6 -- differences with -current should be not significant. In order to make it work you need IPFW and IPDIVERT options in your kernel. There is one problem with the code, which I i am not sure how to fix now: in the call to ip_output, the caller passes a few parameters, including a pointer to a "struct route" . The pointer is saved together with the mbuf containing the packet, and used some time later when the packet is extracted from the queue/delay line and passed to the interface. By that time, the original data structure might have been deallocated :( resulting in a panic or other weird behaviours. I am not sure if the correct way to keep this info alive is to increase reference count to this structure (to be cleared at a later time, but the exact time might be tricky to find out, since i don't really want to modify all low level drivers) or what else. Suggestions 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-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805111007.MAA17553>