From e90fd93821db23ae164d18c47d37ec595fd0f59b Mon Sep 17 00:00:00 2001 From: Kirill Andreev Date: Fri, 1 May 2009 13:59:09 +0400 Subject: [PATCH] Fixed asimmetrical routes --- src/devices/mesh/dot11s/hwmp-protocol.cc | 2 +- src/devices/mesh/dot11s/peer-management-plugin.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/mesh/dot11s/hwmp-protocol.cc b/src/devices/mesh/dot11s/hwmp-protocol.cc index d76d4186d..84b4d08fa 100644 --- a/src/devices/mesh/dot11s/hwmp-protocol.cc +++ b/src/devices/mesh/dot11s/hwmp-protocol.cc @@ -477,7 +477,7 @@ HwmpProtocol::ReceivePrep (IePrep prep, Mac48Address from, uint32_t interface, M } else { - if (i->second >= prep.GetOriginatorSeqNumber ()) + if (i->second > prep.GetOriginatorSeqNumber ()) return; else m_lastHwmpSeqno[prep.GetOriginatorAddress ()] = prep.GetOriginatorSeqNumber(); diff --git a/src/devices/mesh/dot11s/peer-management-plugin.cc b/src/devices/mesh/dot11s/peer-management-plugin.cc index 1e08065e8..b7d55465c 100644 --- a/src/devices/mesh/dot11s/peer-management-plugin.cc +++ b/src/devices/mesh/dot11s/peer-management-plugin.cc @@ -78,7 +78,7 @@ PeerManagerMacPlugin::Receive (Ptr const_packet, const WifiMacHeader & h WifiMeshActionHeader::ActionValue actionValue = actionHdr.GetAction (); // If can not handle - just return; if(actionHdr.GetCategory () != WifiMeshActionHeader::MESH_PEER_LINK_MGT) - return true; + return m_protocol->IsActiveLink(m_ifIndex,header.GetAddr2()); Mac48Address peerAddress = header.GetAddr2 (); Mac48Address peerMpAddress = header.GetAddr3 (); PeerLinkFrameStart::PlinkFrameStartFields fields;