Date: Wed, 1 Jul 2009 22:20:44 +0000 (UTC) From: Rui Paulo <rpaulo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r195263 - projects/mesh11s/sys/net80211 Message-ID: <200907012220.n61MKiHx025606@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907012220.n61MKiHx025606>