svn commit: r195263 - projects/mesh11s/sys/net80211
Rui Paulo
rpaulo at FreeBSD.org
Wed Jul 1 22:20:45 UTC 2009
Author: rpaulo
Date: Wed Jul 1 22:20:44 2009
New Revision: 195263
URL: http://svn.freebsd.org/changeset/base/195263
Log:
Work around __packed.
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 Jul 1 22:18:04 2009 (r195262)
+++ projects/mesh11s/sys/net80211/ieee80211_hwmp.c Wed Jul 1 22:20:44 2009 (r195263)
@@ -611,8 +611,10 @@ hwmp_recv_preq(struct ieee80211vap *vap,
*/
rt = hwmp_rt_find(vap, preq->preq_origaddr);
if (rt == NULL) {
- uint8_t *dest = (uint8_t *)preq->preq_origaddr;
+ /* XXX __packed requires this */
+ uint8_t dest[IEEE80211_ADDR_LEN];
+ IEEE80211_ADDR_COPY(dest, preq->preq_origaddr);
ieee80211_hwmp_discover(vap, dest, NULL);
} else if (IEEE80211_ADDR_EQ(rt->rt_nexthop, invalidaddr))
ieee80211_hwmp_discover(vap, rt->rt_dest, NULL);
More information about the svn-src-projects
mailing list