From 3ddeb82e5920fb4ce16a363a4cdf2ff420fc6f8c Mon Sep 17 00:00:00 2001 From: "Angelos D. Keromytis" Date: Wed, 28 Mar 2001 20:03:10 +0000 Subject: Allow tdbi's to appear in mbufs throughout the stack; this allows security properties of the packets to be pushed up to the application (not done yet). Eventually, this will be turned into a packet attributes framework. Make sure tdbi's are free'd/cleared properly whenever drivers (or NFS) does weird things with mbufs. --- sys/dev/ic/awi_wep.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev/ic/awi_wep.c') diff --git a/sys/dev/ic/awi_wep.c b/sys/dev/ic/awi_wep.c index 87f968130f2..2eb136fb9c1 100644 --- a/sys/dev/ic/awi_wep.c +++ b/sys/dev/ic/awi_wep.c @@ -327,8 +327,9 @@ awi_wep_encrypt(sc, m0, txflag) n0 = n; if (n == NULL) goto fail; - M_COPY_PKTHDR(n, m); - len = IEEE80211_WEP_IVLEN + IEEE80211_WEP_KIDLEN + IEEE80211_WEP_CRCLEN; + M_DUP_PKTHDR(n, m); + len = IEEE80211_WEP_IVLEN + IEEE80211_WEP_KIDLEN + + IEEE80211_WEP_CRCLEN; if (txflag) { n->m_pkthdr.len += len; } else { -- cgit v1.2.3