OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Damien Bergamini (damiencvs.openbsd.org)
Date: Mon Jun 07 2010 - 11:46:17 CDT


CVSROOT: /cvs
Module name: src
Changes by: damiencvs.openbsd.org 2010/06/07 10:46:17

Modified files:
        sys/net80211 : ieee80211_input.c

Log message:
tweak ieee80211_decap():
instead of copying the 802.11 header on the stack and building
the ethernet header directly in the mbuf, build the ethernet
header on the stack directly from the 802.11 header in the
mbuf and copy the ethernet header to the mbuf after stripping
the 802.11 header.
makes the code easier to read/understand, especially, it is
now explicit what is being put in the ether_type field.

diff from Matthew Dempsky (matthew at dempsky dot org)

moved ieee80211_align_mbuf() under #ifdef __STRICT_ALIGNMENT
while i'm here.