]> git.ipfire.org Git - people/ms/rstp.git/commit
RSTP testing - PATCH: BPDU length calculation
authorAji, Srinivas <Aji_Srinivas@emc.com>
Thu, 10 May 2007 23:37:26 +0000 (16:37 -0700)
committerStephen Hemminger <shemminger@linux-foundation.org>
Fri, 11 May 2007 02:34:33 +0000 (19:34 -0700)
commit40f958aa569b8e7300c8d0fdb0e298d8b4c748c6
tree114ac79719319a6cddc0e92ae54e95b17d301bde
parent905a800c74efa1963e89422cccdad9cca3e2b4ff
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>
bridge_track.c