summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_mesh.c
diff options
context:
space:
mode:
authormonthadar <monthadar@FreeBSD.org>2012-05-01 16:02:31 +0000
committermonthadar <monthadar@FreeBSD.org>2012-05-01 16:02:31 +0000
commit3e48b3819f05a81690c262194c3084ce774f1509 (patch)
tree204e670c850312fd0be7df906db9b168806f33d1 /sys/net80211/ieee80211_mesh.c
parent01443cbc253e17eeadf6a1f879f0ad02ae79203f (diff)
downloadFreeBSD-src-3e48b3819f05a81690c262194c3084ce774f1509.zip
FreeBSD-src-3e48b3819f05a81690c262194c3084ce774f1509.tar.gz
PREP update
* Added assertion in mesh_rt_update; * Fixed some prep propagation that where multicast, ALL PREPS ARE UNICAST; * Fixed PREP acceptance criteria; * Fixed some PREP debug messages; * HWMP intermediate reply (PREP) should only be sent if we have newer forwarding infomration (FI) about target; * Fixed PREP propagation condition and PREP w/ AE handling; * Ignore PREPs that have unknown originator. * Removed old code inside PREP that was for proactive path building to root mesh; Other errors include: * use seq number of target and not orig mesh STA; * Metric is what we have stored in our FI; * Error in amendment, Hop count is not 0 but equals FI hopcount for target; Approved by: adrian
Diffstat (limited to 'sys/net80211/ieee80211_mesh.c')
-rw-r--r--sys/net80211/ieee80211_mesh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_mesh.c b/sys/net80211/ieee80211_mesh.c
index ff9abe1..c533491 100644
--- a/sys/net80211/ieee80211_mesh.c
+++ b/sys/net80211/ieee80211_mesh.c
@@ -239,6 +239,8 @@ ieee80211_mesh_rt_update(struct ieee80211_mesh_route *rt, int new_lifetime)
int timesince, now;
uint32_t lifetime = 0;
+ KASSERT(rt != NULL, ("route is NULL"));
+
now = ticks;
RT_ENTRY_LOCK(rt);
OpenPOWER on IntegriCloud