summaryrefslogtreecommitdiffstats
path: root/sys/net/if_iso88025subr.c
diff options
context:
space:
mode:
authorbp <bp@FreeBSD.org>2000-06-14 05:56:53 +0000
committerbp <bp@FreeBSD.org>2000-06-14 05:56:53 +0000
commit9941e0786710b93c7b52eb1adf70c4c2ad6571e1 (patch)
tree33a8aaeaf36808b2513143c0f3e694d36178edfa /sys/net/if_iso88025subr.c
parenta93970294c3a44c9f13c9f3944c956d2eb38c8f4 (diff)
downloadFreeBSD-src-9941e0786710b93c7b52eb1adf70c4c2ad6571e1.zip
FreeBSD-src-9941e0786710b93c7b52eb1adf70c4c2ad6571e1.tar.gz
Do not perform any opeartion with mbuf after it placed into
interface queue. Tested by: Bosko Milekic <bmilekic@dsuper.net>
Diffstat (limited to 'sys/net/if_iso88025subr.c')
-rw-r--r--sys/net/if_iso88025subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_iso88025subr.c b/sys/net/if_iso88025subr.c
index 3dd47b8..cd2c2d9 100644
--- a/sys/net/if_iso88025subr.c
+++ b/sys/net/if_iso88025subr.c
@@ -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:
OpenPOWER on IntegriCloud