Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Aug 2003 10:29:33 -0700
From:      Lars Eggert <larse@ISI.EDU>
To:        Sam Leffler <sam@errno.com>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: CFR: bridge locking
Message-ID:  <3F43AFFD.6080504@isi.edu>
In-Reply-To: <510776858.1061372094@melange.errno.com>
References:  <510776858.1061372094@melange.errno.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Sam Leffler wrote:

> http://www.freebsd.org/~sam/bridge.patch
> 
> This patch adds locking and also overhauls the bridge code some to do 
> things like replace explicit numbers with #defines and cleanup the 
> debugging code.

This is only mildly related, but maybe someone feels like looking at 
this in addition to your locking changes...

I have a PR about the bridge code sitting at 
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/41632; the latest patch 
is at http://www.isi.edu/larse/software/bridge.patch

It does two things:

1. Disables bridging for IPv6. This is probably too aggressive,
    since bridging is only problematic for link-local packets, but it
    makes a routed IPv6 configuration coexist with a bridged IPv4 one.

    A much better fix would be an overhaul of the bridge code so that
    each bridge has a single link-local address, instead of one per
    physical interface. (Similar to how it should/must only have one IPv4
    address, but link-locals are auto-assigned.) Essentially, make
    a bridge set its own pseudo interface.

2. It forwards a copy of bridged packets to bpfs attached to interfaces
    in the bridge set that have no carrier. This makes dhcpd work on an
    interface of a bridge set that is unplugged.

    Again, a much better fix would be to have bridge sets show up as
    pseudo interfaces that dhcpd's bpf can then listen on.

I think you mentioned in the past that NetBSD (OpenBSD?) has bridge code 
that implements the pseudo-device approach?

Lars

PS: I needed both these changes for our Soekris-based "rent-a-subnet" 
box: http://www.isi.edu/tethernet/
-- 
Lars Eggert <larse@isi.edu>           USC Information Sciences Institute

[-- Attachment #2 --]
0	*H
010	+0	*H
	080fErtcvE.0
	*H
010	UZA10UWestern Cape10U	Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0)	*H
	personal-freemail@thawte.com0
000830000000Z
040827235959Z010	UZA10UWestern Cape10U	Cape Town10
U
Thawte10UCertificate Services1(0&UPersonal Freemail RSA 2000.8.3000
	*H
032c	%E>nx'gڈD)c5*mp<ܮto034qmOe
KaU5u'rװ|CBPQ<9TIf-	kiN0L0)U"0 010UPrivateLabel1-2970U00U0
	*H
1KG]qSl]y=&b""I'{9$
*8PUl
LGlX1B	li+@]jy.%݊
Z<D&iHΥbb090
vo0
	*H
010	UZA10UWestern Cape10U	Cape Town10
U
Thawte10UCertificate Services1(0&UPersonal Freemail RSA 2000.8.300
030801172929Z
040731172929Z0T10
UEggert1
0U*Lars10ULars Eggert10	*H
	
larse@isi.edu0"0
	*H
0
>ן~H(ԢGV׆־25B03ݰת^RIH=%J
kA^R)yH80P~qrU|c~\;ҋ^哪!֍&d@Cd"O"f$FrGe|r<z"%h+Z`3<}̘}9ʮcnb6RX ٫e~XgK7,ìEYU?V0T0*+e!000L2uMyffBNUbNJJcdZ2s0U0
larse@isi.edu0U00
	*H
5Kkt[@jj:Fg	Xj(8yPo!})5M[	ش]wʼnQd!GyFRiKd!8h\7γSD`a[qiY+Gqn?!090
vo0
	*H
010	UZA10UWestern Cape10U	Cape Town10
U
Thawte10UCertificate Services1(0&UPersonal Freemail RSA 2000.8.300
030801172929Z
040731172929Z0T10
UEggert1
0U*Lars10ULars Eggert10	*H
	
larse@isi.edu0"0
	*H
0
>ן~H(ԢGV׆־25B03ݰת^RIH=%J
kA^R)yH80P~qrU|c~\;ҋ^哪!֍&d@Cd"O"f$FrGe|r<z"%h+Z`3<}̘}9ʮcnb6RX ٫e~XgK7,ìEYU?V0T0*+e!000L2uMyffBNUbNJJcdZ2s0U0
larse@isi.edu0U00
	*H
5Kkt[@jj:Fg	Xj(8yPo!})5M[	ش]wʼnQd!GyFRiKd!8h\7γSD`a[qiY+Gqn?!100010	UZA10UWestern Cape10U	Cape Town10
U
Thawte10UCertificate Services1(0&UPersonal Freemail RSA 2000.8.30
vo0	+0	*H
	1	*H
0	*H
	1
030820172933Z0#	*H
	10Z^⨕eR-h_3NL0R	*H
	1E0C0
*H
0*H
0
*H
@0+0
*H
(0	+710010	UZA10UWestern Cape10U	Cape Town10
U
Thawte10UCertificate Services1(0&UPersonal Freemail RSA 2000.8.30
vo0*H
	1010	UZA10UWestern Cape10U	Cape Town10
U
Thawte10UCertificate Services1(0&UPersonal Freemail RSA 2000.8.30
vo0
	*H
vI'\kX![.W7U.&#z&=a+=;]!~?d]W##-*; p+N^JtK}͒;ҀP)Don>̣aA}Dѽ/Puo{Gϣ:z
&l2ḮG#+Y=H6f`s-H
u~$B)Rx6fBȠ4=<j

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