mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 06:12:01 +01:00
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)
This commit is contained in:
parent
227da7d10b
commit
40c44a6bb5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246500
@ -1528,7 +1528,7 @@ hwmp_recv_perr(struct ieee80211vap *vap, struct ieee80211_node *ni,
|
|||||||
*/
|
*/
|
||||||
for (i = 0; i < perr->perr_ndests; i++) {
|
for (i = 0; i < perr->perr_ndests; i++) {
|
||||||
rt = ieee80211_mesh_rt_find(vap, PERR_DADDR(i));
|
rt = ieee80211_mesh_rt_find(vap, PERR_DADDR(i));
|
||||||
if (rt == NULL || rt->rt_flags & IEEE80211_MESHRT_FLAGS_VALID)
|
if (rt == NULL)
|
||||||
continue;
|
continue;
|
||||||
if (!IEEE80211_ADDR_EQ(rt->rt_nexthop, wh->i_addr2))
|
if (!IEEE80211_ADDR_EQ(rt->rt_nexthop, wh->i_addr2))
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user