From owner-freebsd-net Fri Aug 28 09:57:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA15921 for freebsd-net-outgoing; Fri, 28 Aug 1998 09:57:47 -0700 (PDT) (envelope-from owner-freebsd-net@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 JAA15883 for ; Fri, 28 Aug 1998 09:57:14 -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 RAA05239; Fri, 28 Aug 1998 17:00:02 +0200 From: Luigi Rizzo Message-Id: <199808281500.RAA05239@labinfo.iet.unipi.it> Subject: new bridging code snap... To: net@FreeBSD.ORG Date: Fri, 28 Aug 1998 17:00:01 +0200 (MET DST) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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