[ovs-dev] [PATCH 08/17] rstp-state-machines: fix TCN reception.
Daniele Venturino
daniele.venturino at m3s.it
Thu Nov 6 15:31:06 UTC 2014
Set rcdv_tcn and return OTHER_INFO when a
TOPOLOGY_CHANGE_NOTIFICATION_BPDU is received.
Signed-off-by: Daniele Venturino <daniele.venturino at m3s.it>
---
lib/rstp-state-machines.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/rstp-state-machines.c b/lib/rstp-state-machines.c
index 5398f12..13abec0 100644
--- a/lib/rstp-state-machines.c
+++ b/lib/rstp-state-machines.c
@@ -1029,6 +1029,14 @@ rcv_info(struct rstp_port *p)
role =
(p->received_bpdu_buffer.flags & ROLE_FLAG_MASK) >> ROLE_FLAG_SHIFT;
+ /* 802.1D-2004 does not report this behaviour.
+ * 802.1Q-2008 says set rcvdTcn. */
+ if (p->received_bpdu_buffer.bpdu_type ==
+ TOPOLOGY_CHANGE_NOTIFICATION_BPDU) {
+ p->rcvd_tcn = true;
+ return OTHER_INFO;
+ }
+
/* Returns SuperiorDesignatedInfo if:
* a) The received message conveys a Designated Port Role, and
* 1) The message priority is superior (17.6) to the Port.s port priority
--
1.8.1.2
More information about the dev
mailing list