Lines Matching refs:hdrlen
54 static int wep_decap(struct ieee80211_key *, struct mbuf *, int hdrlen);
73 static int wep_encrypt(struct ieee80211_key *, struct mbuf *, int hdrlen);
74 static int wep_decrypt(struct ieee80211_key *, struct mbuf *, int hdrlen);
130 int hdrlen; in wep_encap() local
132 hdrlen = ieee80211_hdrspace(ic, mtod(m, void *)); in wep_encap()
141 ovbcopy(ivp + wep.ic_header, ivp, hdrlen); in wep_encap()
142 ivp += hdrlen; in wep_encap()
190 !wep_encrypt(k, m, hdrlen)) in wep_encap()
212 wep_decap(struct ieee80211_key *k, struct mbuf *m, int hdrlen) in wep_decap() argument
226 !wep_decrypt(k, m, hdrlen)) { in wep_decap()
236 ovbcopy(mtod(m, void *), mtod(m, uint8_t *) + wep.ic_header, hdrlen); in wep_decap()
308 wep_encrypt(struct ieee80211_key *key, struct mbuf *m0, int hdrlen) in wep_encrypt() argument
325 memcpy(rc4key, mtod(m, uint8_t *) + hdrlen, IEEE80211_WEP_IVLEN); in wep_encrypt()
338 off = hdrlen + wep.ic_header; in wep_encrypt()
391 wep_decrypt(struct ieee80211_key *key, struct mbuf *m0, int hdrlen) in wep_decrypt() argument
408 memcpy(rc4key, mtod(m, uint8_t *) + hdrlen, IEEE80211_WEP_IVLEN); in wep_decrypt()
421 off = hdrlen + wep.ic_header; in wep_decrypt()