Date: Wed, 1 Jul 2009 01:27:27 +0000 (UTC) From: Sam Leffler <sam@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r195222 - projects/mesh11s/sys/net80211 Message-ID: <200907010127.n611RRSf097570@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sam Date: Wed Jul 1 01:27:27 2009 New Revision: 195222 URL: http://svn.freebsd.org/changeset/base/195222 Log: hack ALIGNED_POINTER so we re-align mesh data frames on arm Modified: projects/mesh11s/sys/net80211/ieee80211_input.c Modified: projects/mesh11s/sys/net80211/ieee80211_input.c ============================================================================== --- projects/mesh11s/sys/net80211/ieee80211_input.c Wed Jul 1 01:26:51 2009 (r195221) +++ projects/mesh11s/sys/net80211/ieee80211_input.c Wed Jul 1 01:27:27 2009 (r195222) @@ -277,6 +277,7 @@ ieee80211_decap(struct ieee80211vap *vap IEEE80211_ADDR_COPY(eh->ether_shost, wh.i_addr4); break; } +#define ALIGNED_POINTER(p,t) ((((u_long)(p)) & (sizeof(t)-1)) == 0) #ifdef ALIGNED_POINTER if (!ALIGNED_POINTER(mtod(m, caddr_t) + sizeof(*eh), uint32_t)) { struct mbuf *n, *n0, **np;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907010127.n611RRSf097570>