Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Mar 2012 03:19:51 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r233255 - head/sys/net80211
Message-ID:  <201203210319.q2L3Jp2G051160@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Wed Mar 21 03:19:50 2012
New Revision: 233255
URL: http://svn.freebsd.org/changeset/base/233255

Log:
  Re-commit this - store the alq payload in network order.

Modified:
  head/sys/net80211/ieee80211_alq.c

Modified: head/sys/net80211/ieee80211_alq.c
==============================================================================
--- head/sys/net80211/ieee80211_alq.c	Wed Mar 21 03:13:25 2012	(r233254)
+++ head/sys/net80211/ieee80211_alq.c	Wed Mar 21 03:19:50 2012	(r233255)
@@ -152,7 +152,7 @@ ieee80211_alq_log(struct ieee80211vap *v
 	r->r_version = 1;
 	r->r_wlan = htons(vap->iv_ifp->if_dunit);
 	r->r_op = op;
-	r->r_threadid = (uint32_t) curthread->td_tid;
+	r->r_threadid = htonl((uint32_t) curthread->td_tid);
 	memcpy(&r->r_payload, p, MIN(l, sizeof(r->r_payload)));
 	alq_post(ieee80211_alq, ale);
 }



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