Lines Matching defs:mcur
3808 struct mbuf *m = *mp, *nextpkt = NULL, *mprev = NULL, *mcur = NULL;
3826 for (mcur = m; mcur; mcur = mcur->m_nextpkt) {
3827 nextpkt = mcur->m_nextpkt;
3828 mcur->m_nextpkt = NULL;
3830 M_PREPEND(mcur, sizeof(struct llc), M_NOWAIT);
3831 if (mcur == NULL) {
3837 bcopy(llc, mtod(mcur, caddr_t),sizeof(struct llc));
3840 M_PREPEND(mcur, ETHER_HDR_LEN, M_NOWAIT);
3841 if (mcur == NULL) {
3847 bcopy(eh, mtod(mcur, caddr_t), ETHER_HDR_LEN);
3854 mcur->m_nextpkt = nextpkt;
3856 mprev->m_nextpkt = mcur;
3860 *mp = mcur;
3862 mprev = mcur;
3869 for (mcur = *mp; mcur; mcur = m) { /* droping the full packet chain */
3870 m = mcur->m_nextpkt;
3871 m_freem(mcur);