summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_stp_bpdu.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2006-09-14 05:12:40 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-18 08:21:08 +0200
commit485c2967d622449f4bbfae305a6fc4e185b5b094 (patch)
tree4f06861f759258ab1594758e05bfc51d05d6baf8 /net/bridge/br_stp_bpdu.c
parent[IPV6]: Accept -1 for IPV6_TCLASS (diff)
downloadlinux-485c2967d622449f4bbfae305a6fc4e185b5b094.tar.xz
linux-485c2967d622449f4bbfae305a6fc4e185b5b094.zip
[BRIDGE]: random extra bytes on STP TCN packet
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> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_stp_bpdu.c')
-rw-r--r--net/bridge/br_stp_bpdu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_stp_bpdu.c b/net/bridge/br_stp_bpdu.c
index a7ba0cce0b46..068d8afbf0a7 100644
--- a/net/bridge/br_stp_bpdu.c
+++ b/net/bridge/br_stp_bpdu.c
@@ -121,7 +121,7 @@ void br_send_tcn_bpdu(struct net_bridge_port *p)
buf[1] = 0;
buf[2] = 0;
buf[3] = BPDU_TYPE_TCN;
- br_send_bpdu(p, buf, 7);
+ br_send_bpdu(p, buf, 4);
}
/*