mark M_LASTFRAG at the last fragment.

Reviewed by:	sam
MFC after:	3 weeks
This commit is contained in:
Weongyo Jeong 2009-02-09 04:39:16 +00:00
parent 5d68db5bc8
commit 51cec12145
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188380

View file

@ -1376,6 +1376,9 @@ ieee80211_fragment(struct ieee80211vap *vap, struct mbuf *m0,
remainder -= payload;
off += payload;
} while (remainder != 0);
/* set the last fragment */
m->m_flags |= M_LASTFRAG;
whf->i_fc[1] &= ~IEEE80211_FC1_MORE_FRAG;
/* strip first mbuf now that everything has been copied */