* [PATCH] bridge: random extra bytes on STP TCN packet
@ 2006-09-05 16:59 Stephen Hemminger
0 siblings, 0 replies; only message in thread
From: Stephen Hemminger @ 2006-09-05 16:59 UTC (permalink / raw)
To: David S. Miller; +Cc: bridge, netdev
We seem to send 3 extra bytes in a TCN, which will be whatever happens
to be on the stack. Thanks to Aji_Srinivas@emc.com for seeing.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
diff -Naur a/net/bridge/br_stp_bpdu.c b/net/bridge/br_stp_bpdu.c
--- a/net/bridge/br_stp_bpdu.c 2006-09-03 23:40:08.000000000 +0530
+++ b/net/bridge/br_stp_bpdu.c 2006-09-03 23:40:33.000000000 +0530
@@ -121,7 +121,7 @@
buf[1] = 0;
buf[2] = 0;
buf[3] = BPDU_TYPE_TCN;
- br_send_bpdu(p, buf, 7);
+ br_send_bpdu(p, buf, 4);
}
/*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-09-05 16:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-05 16:59 [PATCH] bridge: random extra bytes on STP TCN packet Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).