Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 1998 17:00:01 +0200 (MET DST)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        net@FreeBSD.ORG
Subject:   new bridging code snap...
Message-ID:  <199808281500.RAA05239@labinfo.iet.unipi.it>

next in thread | raw e-mail | index | archive | help
I have made some progress with the bridging code (the previous one was
quite broken!) and the diffs wrt/ 2.2.6 or 2.2.7 are at

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

This version seems to work (tested) with the "ed", "de" and "lnc"
drivers, plus i have patched (but untested for lack of hardware) the
"ep" and "fxp" drivers as well.

Just put "option BRIDGE" in your config file, and enable bridging with

	sysctl -w net.link.ether.bridge=1

(set to 0 to disable). Configure an IP address only on one of the
ethernet interfaces.

This code includes the bpf change i suggested earlier today, plus a fix
to the "lnc" driver which panics dereferencing a null pointer if the
if_start() routine is called without properly calling if_init() -- i
am not sure why is this happens, and if it is the bridge code or the
kernel bootp code.

Known problems:
  * the bridge will only answer to ARP requests coming from the "main"
    interface (the one configured with an IP address). This will be
    fixed in the future.

  * the "de" driver at least with my card seems to become deaf when a
    cable problem occurs, and it needs a packet transmission to start
    listening again. I am not sure if it is a problem in the driver or
    in my card (media is 100baseTX) but this can cause temporary
    problems when you plug cables on and off.

Have fun, provide feedback...

	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?199808281500.RAA05239>