From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 27 Jul 2010 19:20:41 +0200 From: Rodolfo Giometti Sender: giometti@enneenne.com Message-ID: <20100727172041.GA12321@enneenne.com> References: <20100702135641.GQ2149@gundam.enneenne.com> <20100702092148.5d5a4e57@nehalam> <20100727092655.GA30692@gundam.enneenne.com> <20100727083815.32972338@nehalam> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100727083815.32972338@nehalam> Subject: Re: [Bridge] rstpd & 2.4 List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stephen Hemminger Cc: bridge@lists.linux-foundation.org On Tue, Jul 27, 2010 at 08:38:15AM -0700, Stephen Hemminger wrote: > On Tue, 27 Jul 2010 11:26:55 +0200 > Rodolfo Giometti wrote: > > > On Fri, Jul 02, 2010 at 09:21:48AM -0700, Stephen Hemminger wrote: > > > > > The 2.4 kernel is missing all the hooks to provide user level STP. > > > The startup is not the big issue, the real problem is that the > > > kernel doesn't have hooks to control port state from user space, > > > and the spanning tree packets may not be visible to user space > > > application either. > > > > > > Sigh, 2.4 is at least 5 years old by now. > > > > Hello, I'm going to start backport of rstpd to kernel 2.4 series and > > I'd like having some advices from you. > > > > Regarding the bridge controls I can add to the current sysfs interface > > the old ioctl interface as the old bridge-utils did. Do you think I > > can contribute to the rstpd code in order to support such interface or > > you have no interest in doing it? > > I won't put in 2.6 code. If you wan to put in 2.4, contact > the 2.4 kernel maintainer. Regarding my modifications I just refer to the rstpd code, I'm going to store kernel patches on my site only, so no kernel patches at all. :) > > The problem of controlling the port state from user space can be > > resolved by adding the missing netlink commands into the kernel code. > > > > In the end, spanning tree packets may be captured as tcpdump do, is > > that right? > > That is how I did it since RSTP needs to see ethernet headers. Ok, thanks. Ciao, Rodolfo -- GNU/Linux Solutions e-mail: giometti@enneenne.com Linux Device Driver giometti@linux.it Embedded Systems phone: +39 349 2432127 UNIX programming skype: rodolfo.giometti Freelance ICT Italia - Consulente ICT Italia - www.consulenti-ict.it