Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jun 2009 16:24:09 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r194853 - projects/mesh11s/sys/net80211
Message-ID:  <200906241624.n5OGO9O3020248@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rpaulo
Date: Wed Jun 24 16:24:08 2009
New Revision: 194853
URL: http://svn.freebsd.org/changeset/base/194853

Log:
  Build a bit more of the routing entry on PREP recv.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  projects/mesh11s/sys/net80211/ieee80211_hwmp.c

Modified: projects/mesh11s/sys/net80211/ieee80211_hwmp.c
==============================================================================
--- projects/mesh11s/sys/net80211/ieee80211_hwmp.c	Wed Jun 24 16:16:07 2009	(r194852)
+++ projects/mesh11s/sys/net80211/ieee80211_hwmp.c	Wed Jun 24 16:24:08 2009	(r194853)
@@ -776,10 +776,13 @@ hwmp_recv_prep(struct ieee80211vap *vap,
 
 	if (fi != NULL) {
 		/*
-		 * Record the next hop.
+		 * Build the rest of the entry.
 		 * XXX check for SEQ and PREQ ID.
 		 */
 		IEEE80211_ADDR_COPY(fi->fi_nexthop, wh->i_addr2);
+		fi->fi_nhops = prep->prep_hopcount;
+		fi->fi_lifetime = prep->prep_lifetime;
+		fi->fi_metric = prep->prep_metric;
 	}
 
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906241624.n5OGO9O3020248>