]> git.ipfire.org Git - people/ms/rstp.git/commit
RSTP testing - PATCH: source MAC address of BPDU
authorAji, Srinivas <Aji_Srinivas@emc.com>
Thu, 10 May 2007 23:35:41 +0000 (16:35 -0700)
committerStephen Hemminger <shemminger@linux-foundation.org>
Fri, 11 May 2007 02:34:28 +0000 (19:34 -0700)
commit905a800c74efa1963e89422cccdad9cca3e2b4ff
tree7dad179812982b2030314a9583dca586350893de
parent358260ffcc3985847f73f0882a09406f6d388dd9
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>
rstplib/transmit.c