Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Aug 1998 14:34:44 +0200 (MET DST)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        net@FreeBSD.ORG
Subject:   and now bridging :)
Message-ID:  <199808261234.OAA02693@labinfo.iet.unipi.it>

next in thread | raw e-mail | index | archive | help
Hi,

i have a pre-pre-release of some bridging code for FreeBSD. I have the
basic ops working and tested on 2.2.X with the "ed" driver. It
_should_ work for the "de" driver as well, and modifications for other
drivers should be trivial and will be done "on demand".

I think this code, together with the PicoBSD floppy, will make a very
very nice bridge between 10 and 100 Mbit/s networks, and possibly also
wireless network interfaces. The code should be pretty well performant
even on slow isa-based cards because i can (and do this in the "ed"
driver) fetch only the ethernet header of all packets, and download
the rest of the packet only for those pkts that need to be forwarded.

The code, including comments on how to use it, is available at

    http://www.iet.unipi.it/~luigi/bsd-bdg980826.diffs

THIS IS A PRERELEASE NOT READY FOR PRODUCTION. The diffs have been
hand-edited so expect some verbosity in applying the patches or
trivial compile errors. The code needs some further test and
optimization, and support for more boards.  The reason i am posting
this now is that i need people to test this code, and send feedback
on bugs and/or possible enhancements. In particular:

   * i need to add some per-interface status (for flags and
     statistics) in the leasts intrusive way. Because the ifnet
     struct is used also used as a field in arpcom etc, i am a bit
     reluctant in changing that struct. The only option would then be
     an external array indexed by if_index. Do you see any other
     option ?

   * how does the above patch apply to -current ?

   * does anyone have a pointer to source code for the spanning tree
     algorithm that i can put into a user-space daemon ?

   * extensions: what would be nice to do ? Like add some tunneling
     option to the bridge ? (in which case i would need to add a
     "virtual" interface that can be used to tunnel packets).

if you download the code, please try it out, otherwise just wait a few
more days until it stabilizes.

	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-net" in the body of the message



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