]> git.ipfire.org Git - people/ms/rstp.git/log
people/ms/rstp.git
12 years agoTurn off compiler strict aliasing
Stephen Hemminger [Wed, 18 May 2011 23:08:56 +0000 (16:08 -0700)] 
Turn off compiler strict aliasing

The code does things like ntohs(*(unsigned short*) b->message_age)
which break strict alias checking in gcc.

12 years agoRemove code for passing STP BPDU via netlink
Stephen Hemminger [Wed, 18 May 2011 22:48:59 +0000 (15:48 -0700)] 
Remove code for passing STP BPDU via netlink

EMC implemented a mechanism of passing BPDU via netlink
that was never accepted in upstream kernel.

12 years agoremove dead code
Stephen Hemminger [Wed, 18 May 2011 22:48:22 +0000 (15:48 -0700)] 
remove dead code

14 years agoFix null pointer dereference in bridge_bpdu_rcv
Alexander Yurchenko [Fri, 19 Feb 2010 09:26:34 +0000 (12:26 +0300)] 
Fix null pointer dereference in bridge_bpdu_rcv

Check that the interface on which bpdu was received is actually
a bridge port. It's possible to receive an STP packet on
a bridge interface itself if the bridge has STP disabled
and forwards STP traffic.

Signed-off-by: Alexander Yurchenko <a.yurchenko@scalaxy.ru>
14 years agoFix rstpctl usage
Alexander Yurchenko [Fri, 19 Feb 2010 10:27:16 +0000 (13:27 +0300)] 
Fix rstpctl usage

Add missing ``rstp'' command to the rstpctl arguments.

Signed-off-by: Alexander Yurchenko <a.yurchenko@scalaxy.ru>
15 years agofixes for 4.3.3 GCC warnings/errors
Denys Fedoryschenko [Wed, 1 Apr 2009 16:06:55 +0000 (09:06 -0700)] 
fixes for 4.3.3 GCC warnings/errors

After fetching current git code and compiling with gcc 4.3.3 got errors
related to Werror (2 functions was ignoring return value), and ulimits.h was
not declared, but INT_MAX used
Here is fix, so rstp compile fine with gcc 4.3.3

Signed-off-by: Denys Fedoryschenko <denys@visp.net.lb>
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