Author: monthadar
Date: Thu Feb  7 21:19:44 2013
New Revision: 246500
URL: http://svnweb.freebsd.org/changeset/base/246500

Log:
  HWMP: Accept a PERR even if path is valid.
  
  * An HWMP PERR should be accepted even if path is valid. Because
    we check if we recevied it from a neighbour that we use as a next hop;
  
  Approved by:  adrian (mentor)

Modified:
  head/sys/net80211/ieee80211_hwmp.c

Modified: head/sys/net80211/ieee80211_hwmp.c
==============================================================================
--- head/sys/net80211/ieee80211_hwmp.c  Thu Feb  7 21:18:22 2013        
(r246499)
+++ head/sys/net80211/ieee80211_hwmp.c  Thu Feb  7 21:19:44 2013        
(r246500)
@@ -1528,7 +1528,7 @@ hwmp_recv_perr(struct ieee80211vap *vap,
         */
        for (i = 0; i < perr->perr_ndests; i++) {
                rt = ieee80211_mesh_rt_find(vap, PERR_DADDR(i));
-               if (rt == NULL || rt->rt_flags & IEEE80211_MESHRT_FLAGS_VALID)
+               if (rt == NULL)
                        continue;
                if (!IEEE80211_ADDR_EQ(rt->rt_nexthop, wh->i_addr2))
                        continue;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to