]> git.ipfire.org Git - people/ms/rstp.git/log
people/ms/rstp.git
15 years agoUpdate headers to 2.6.29
Stephen Hemminger [Wed, 1 Apr 2009 16:00:14 +0000 (09:00 -0700)] 
Update headers to 2.6.29

16 years agoRSTP testing - PATCH: Typo in libnetlink.c origin
Aji, Srinivas [Thu, 10 May 2007 23:38:48 +0000 (16:38 -0700)] 
RSTP testing - PATCH: Typo in libnetlink.c

 Typo in libnetlink.c

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
16 years agoRSTP testing - PATCH: BPDU length calculation
Aji, Srinivas [Thu, 10 May 2007 23:37:26 +0000 (16:37 -0700)] 
RSTP testing - PATCH: BPDU length calculation

   The bpdu_len sent to STP_OUT_tx_bpdu() excludes the ethernet and
   and LLC headers, though the bpdu pointer points to the start of the
   ethernet header. Given the types in rstplib/stp_bpdu.h, we need to
   be sending a packet with (base, len) given by
   (bpdu, bpdu_len + sizeof(MAC_HEADER_T) + sizeof(ETH_HEADER_T))
   MAC_HEADER_T is dest and source ethernet addresses and ETH_HEADER_T
   is the 802.2 part.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
16 years agoRSTP testing - PATCH: source MAC address of BPDU
Aji, Srinivas [Thu, 10 May 2007 23:35:41 +0000 (16:35 -0700)] 
RSTP testing - PATCH: source MAC address of BPDU

   BPDU's were being sent out with an all zero source ethernet
   address. These packets don't make it far in the receive path on
   another bridge since bridge_handle_frame() checks for valid source
   ethernet address and drops them if that isn't the case.

   I needed to undo a change I made in rstplib/transmit.c, where I was
   not setting source MAC address because the LLC layer was doing it.

   TODO: We get notified when a port MAC address changes, so we should
   cache it. Right now it uses SIOCGIFHWADDR each time (for each BPDU
   sent) using a cached name, which is not good.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
17 years agorstpd: working version
Stephen Hemminger [Wed, 25 Apr 2007 23:43:28 +0000 (16:43 -0700)] 
rstpd: working version

This is the first version that works with modifications to bridge
that are going into 2.6.22

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
17 years agoSimple usermode helper script
Stephen Hemminger [Thu, 22 Mar 2007 23:05:52 +0000 (16:05 -0700)] 
Simple usermode helper script

17 years agoInitialize packet socket
Stephen Hemminger [Thu, 22 Mar 2007 23:05:30 +0000 (16:05 -0700)] 
Initialize packet socket

17 years agoBuild brmon again
Stephen Hemminger [Thu, 22 Mar 2007 20:57:58 +0000 (13:57 -0700)] 
Build brmon again

Sorry, that code was needed.

17 years agoRevised packet SOCK_RAW code
Stephen Hemminger [Thu, 22 Mar 2007 20:54:41 +0000 (13:54 -0700)] 
Revised packet SOCK_RAW code

Still not complete.

17 years agoremove ifdef'd code
Stephen Hemminger [Thu, 22 Mar 2007 20:42:37 +0000 (13:42 -0700)] 
remove ifdef'd code

The code is no longer needed.

17 years agonetlink shouldn't kill daemon
Stephen Hemminger [Thu, 22 Mar 2007 20:41:40 +0000 (13:41 -0700)] 
netlink shouldn't kill daemon

A netlink error shouldn't cause silent death of daemon.
It doesn't work well if library calls exit().

17 years agoConvert to using AF_PACKET for send and receive
Stephen Hemminger [Thu, 22 Mar 2007 00:35:50 +0000 (17:35 -0700)] 
Convert to using AF_PACKET for send and receive

Use AF_PACKET to send and receive spanning tree bpdu's
UNTESTED at this point.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
17 years agoreindent source
Stephen Hemminger [Wed, 21 Mar 2007 23:31:39 +0000 (16:31 -0700)] 
reindent source

Use kernel indentation style. Existing style was too odd.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
17 years agoupdate ignore file
Stephen Hemminger [Wed, 21 Mar 2007 23:26:38 +0000 (16:26 -0700)] 
update ignore file

17 years agofix build
Stephen Hemminger [Wed, 21 Mar 2007 23:25:04 +0000 (16:25 -0700)] 
fix build

17 years agoInitial commit
Stephen Hemminger [Wed, 21 Mar 2007 23:23:46 +0000 (16:23 -0700)] 
Initial commit

sources from  Aji_Srinivas@emc.com