Do not perform any opeartion with mbuf after it placed into

interface queue.

Tested by:	Bosko Milekic <bmilekic@dsuper.net>
This commit is contained in:
Boris Popov 2000-06-14 05:56:53 +00:00
parent dda725c98c
commit 425f741b1d
3 changed files with 9 additions and 9 deletions

View File

@ -392,13 +392,13 @@ ether_output(ifp, m, dst, rt0)
splx(s);
senderr(ENOBUFS);
}
if (m->m_flags & M_MCAST)
ifp->if_omcasts++;
IF_ENQUEUE(&ifp->if_snd, m);
if ((ifp->if_flags & IFF_OACTIVE) == 0)
(*ifp->if_start)(ifp);
splx(s);
ifp->if_obytes += len + sizeof (struct ether_header);
if (m->m_flags & M_MCAST)
ifp->if_omcasts++;
return (error);
bad:
@ -1065,13 +1065,13 @@ ngether_rcvdata(hook_p hook, struct mbuf *m, meta_p meta,
splx(s);
senderr(ENOBUFS);
}
ifp->if_obytes += m->m_pkthdr.len;
if (m->m_flags & M_MCAST)
ifp->if_omcasts++;
IF_ENQUEUE(&ifp->if_snd, m);
if ((ifp->if_flags & IFF_OACTIVE) == 0)
(*ifp->if_start)(ifp);
splx(s);
ifp->if_obytes += m->m_pkthdr.len;
if (m->m_flags & M_MCAST)
ifp->if_omcasts++;
return (error);
bad:

View File

@ -357,12 +357,12 @@ fddi_output(ifp, m, dst, rt0)
senderr(ENOBUFS);
}
ifp->if_obytes += m->m_pkthdr.len;
if (m->m_flags & M_MCAST)
ifp->if_omcasts++;
IF_ENQUEUE(&ifp->if_snd, m);
if ((ifp->if_flags & IFF_OACTIVE) == 0)
(*ifp->if_start)(ifp);
splx(s);
if (m->m_flags & M_MCAST)
ifp->if_omcasts++;
return (error);
bad:

View File

@ -306,13 +306,13 @@ iso88025_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst, struct
splx(s);
senderr(ENOBUFS);
}
if (m->m_flags & M_MCAST)
ifp->if_omcasts++;
IF_ENQUEUE(&ifp->if_snd, m);
if ((ifp->if_flags & IFF_OACTIVE) == 0)
(*ifp->if_start)(ifp);
splx(s);
ifp->if_obytes += len + ISO88025_HDR_LEN + 8;
if (m->m_flags & M_MCAST)
ifp->if_omcasts++;
return (error);
bad: