-/* $OpenBSD: ieee80211_output.c,v 1.70 2008/08/12 19:56:59 damien Exp $ */
+/* $OpenBSD: ieee80211_output.c,v 1.71 2008/08/15 08:15:27 damien Exp $ */
/* $NetBSD: ieee80211_output.c,v 1.13 2004/05/31 11:02:55 dyoung Exp $ */
/*-
hdrlen = sizeof(struct ieee80211_frame);
addqos = 0;
}
- m_adj(m, sizeof(struct ether_header) - sizeof(struct llc));
+ m_adj(m, sizeof(struct ether_header) - LLC_SNAPFRAMELEN);
llc = mtod(m, struct llc *);
llc->llc_dsap = llc->llc_ssap = LLC_SNAP_LSAP;
llc->llc_control = LLC_UI;
u_int16_t capinfo;
m = ieee80211_getmgmt(M_DONTWAIT, MT_DATA,
- 2 + 2 +
+ 2 + 2 +
((reassoc == IEEE80211_FC0_SUBTYPE_REASSOC_REQ) ?
IEEE80211_ADDR_LEN : 0) +
2 + ni->ni_esslen +
u_int8_t *frm;
m = ieee80211_getmgmt(M_DONTWAIT, MT_DATA,
- 2 + 2 + 2 +
+ 2 + 2 + 2 +
2 + min(rs->rs_nrates, IEEE80211_RATE_SIZE) +
((rs->rs_nrates > IEEE80211_RATE_SIZE) ?
2 + rs->rs_nrates - IEEE80211_RATE_SIZE : 0) +
-/* $OpenBSD: ieee80211_pae_output.c,v 1.11 2008/08/12 19:51:19 damien Exp $ */
+/* $OpenBSD: ieee80211_pae_output.c,v 1.12 2008/08/15 08:15:27 damien Exp $ */
/*-
* Copyright (c) 2007,2008 Damien Bergamini <damien.bergamini@free.fr>
struct mbuf *m;
/* reserve space for 802.11 encapsulation and EAPOL-Key header */
- pktlen += sizeof(struct ieee80211_frame) + sizeof(struct llc) +
+ pktlen += sizeof(struct ieee80211_frame) + LLC_SNAPFRAMELEN +
sizeof(struct ieee80211_eapol_key);
if (pktlen > MCLBYTES)
if (!(m->m_flags & M_EXT))
return m_free(m);
}
- m->m_data += sizeof(struct ieee80211_frame) + sizeof(struct llc);
+ m->m_data += sizeof(struct ieee80211_frame) + LLC_SNAPFRAMELEN;
return m;
}