summaryrefslogtreecommitdiffstats
path: root/sys/net/if_sl.c
diff options
context:
space:
mode:
authorgpalmer <gpalmer@FreeBSD.org>1996-06-10 23:07:36 +0000
committergpalmer <gpalmer@FreeBSD.org>1996-06-10 23:07:36 +0000
commit3d25650dd7c966ac51f8b3282ebd9e19d4180bba (patch)
tree873cfb6a0afbdf68e48eb5fc1d9b647963c2ab23 /sys/net/if_sl.c
parent5084820da1fa2c34db54030c73050e853283ba69 (diff)
downloadFreeBSD-src-3d25650dd7c966ac51f8b3282ebd9e19d4180bba.zip
FreeBSD-src-3d25650dd7c966ac51f8b3282ebd9e19d4180bba.tar.gz
Change the use if ifnet.if_lastchange to be more in line with
SNMP requirements. Update description of ifnet.if_lastchange in if.h to indicate this.
Diffstat (limited to 'sys/net/if_sl.c')
-rw-r--r--sys/net/if_sl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c
index e69bc54..3cf39f3 100644
--- a/sys/net/if_sl.c
+++ b/sys/net/if_sl.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if_sl.c 8.6 (Berkeley) 2/1/94
- * $Id: if_sl.c,v 1.40 1996/05/13 14:09:34 ache Exp $
+ * $Id: if_sl.c,v 1.41 1996/05/13 14:18:18 ache Exp $
*/
/*
@@ -302,6 +302,7 @@ slopen(dev, tp)
s = splnet();
if_up(&sc->sc_if);
+ sc->sc_if.if_lastchange = time;
splx(s);
return (0);
}
@@ -487,7 +488,6 @@ sloutput(ifp, m, dst, rtp)
return (ENOBUFS);
}
IF_ENQUEUE(ifq, m);
- sc->sc_if.if_lastchange = time;
if (sc->sc_ttyp->t_outq.c_cc == 0)
slstart(sc->sc_ttyp);
splx(s);
@@ -595,7 +595,6 @@ slstart(tp)
bpf_tap(&sc->sc_if, bpfbuf, len + SLIP_HDRLEN);
}
#endif
- sc->sc_if.if_lastchange = time;
/*
* If system is getting low on clists, just flush our
@@ -877,7 +876,6 @@ slinput(c, tp)
goto error;
sc->sc_if.if_ipackets++;
- sc->sc_if.if_lastchange = time;
if ((sc->sc_if.if_flags & IFF_UP) == 0) {
m_freem(m);
OpenPOWER on IntegriCloud