summaryrefslogtreecommitdiff
path: root/sys/net/if_arcsubr.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-06-15 03:38:36 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-06-15 03:38:36 +0000
commitf503c85b89c9d4081a557d228744177a77713e0b (patch)
tree0cb10156e6c8e931370c8412b68fa339b640f1f2 /sys/net/if_arcsubr.c
parent0155468b6bfa9af93194487c72f384953150ed8f (diff)
change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange.
follows BSD/OS practice and ucd-snmp code (FreeBSD does it for specific interfaces only). was: if_lastchange get updated on every packet transmission/receipt. now: if_lastchange get updated when IFF_UP is changed.
Diffstat (limited to 'sys/net/if_arcsubr.c')
-rw-r--r--sys/net/if_arcsubr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/if_arcsubr.c b/sys/net/if_arcsubr.c
index b84d955ee0b..08675f34879 100644
--- a/sys/net/if_arcsubr.c
+++ b/sys/net/if_arcsubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_arcsubr.c,v 1.6 2001/05/11 17:20:09 aaron Exp $ */
+/* $OpenBSD: if_arcsubr.c,v 1.7 2001/06/15 03:38:33 itojun Exp $ */
/* $NetBSD: if_arcsubr.c,v 1.8 1996/05/07 02:40:29 thorpej Exp $ */
/*
@@ -113,7 +113,6 @@ arc_output(ifp, m0, dst, rt0)
m = m0;
mcopy = m1 = NULL;
- ifp->if_lastchange = time;
if ((rt = rt0)) {
if ((rt->rt_flags & RTF_UP) == 0) {
if ((rt0 = rt = rtalloc1(dst, 1)))
@@ -483,7 +482,6 @@ arc_input(ifp, m)
ah = mtod(m, struct arc_header *);
- ifp->if_lastchange = time;
ifp->if_ibytes += m->m_pkthdr.len;
if (arcbroadcastaddr == ah->arc_dhost) {