mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 20:54:10 +08:00
[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>
This commit is contained in:
parent
d0ee011f72
commit
485c2967d6
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user