diff options
author | mdodd <mdodd@FreeBSD.org> | 2003-03-15 21:51:39 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2003-03-15 21:51:39 +0000 |
commit | d16675cd85efe1cde6bf077376276f3de06f0263 (patch) | |
tree | 2ab3c9963de6c4e5fc9aba01035c705a70e35ef1 | |
parent | b4d176598f1e20be1f27efaf34904800989306fc (diff) | |
download | FreeBSD-src-d16675cd85efe1cde6bf077376276f3de06f0263.zip FreeBSD-src-d16675cd85efe1cde6bf077376276f3de06f0263.tar.gz |
Update interface statistics after MAC and IFF_UP|IFF_RUNNING checks.
-rw-r--r-- | sys/net/if_fddisubr.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/net/if_fddisubr.c b/sys/net/if_fddisubr.c index 9f32c00..2230396 100644 --- a/sys/net/if_fddisubr.c +++ b/sys/net/if_fddisubr.c @@ -340,12 +340,6 @@ fddi_input(ifp, m) fh = mtod(m, struct fddi_header *); /* - * Update interface statistics. - */ - ifp->if_ibytes += m->m_pkthdr.len; - getmicrotime(&ifp->if_lastchange); - - /* * Discard packet if interface is not up. */ if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING)) @@ -356,6 +350,12 @@ fddi_input(ifp, m) #endif /* + * Update interface statistics. + */ + ifp->if_ibytes += m->m_pkthdr.len; + getmicrotime(&ifp->if_lastchange); + + /* * Discard non local unicast packets when interface * is in promiscuous mode. */ |