diff options
author | bp <bp@FreeBSD.org> | 2000-06-14 05:56:53 +0000 |
---|---|---|
committer | bp <bp@FreeBSD.org> | 2000-06-14 05:56:53 +0000 |
commit | 9941e0786710b93c7b52eb1adf70c4c2ad6571e1 (patch) | |
tree | 33a8aaeaf36808b2513143c0f3e694d36178edfa /sys/net/if_ethersubr.c | |
parent | a93970294c3a44c9f13c9f3944c956d2eb38c8f4 (diff) | |
download | FreeBSD-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_ethersubr.c')
-rw-r--r-- | sys/net/if_ethersubr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 8507d90..22101e7 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -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: |