From e6cf88e5df367ae03e6a2795b0841e142b9a50a0 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Thu, 23 Jun 2005 14:30:41 +0000 Subject: update if_lastchange for evey IFF_UP change not only SIOCSIFFLAGS; henning@ ok --- sys/net/if.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/net') diff --git a/sys/net/if.c b/sys/net/if.c index 12be3ae98fb..c2dda7b0082 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.135 2005/06/14 04:00:38 henning Exp $ */ +/* $OpenBSD: if.c,v 1.136 2005/06/23 14:30:40 mickey Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -1437,6 +1437,7 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct proc *p) } if (((oif_flags ^ ifp->if_flags) & IFF_UP) != 0) { + microtime(&ifp->if_lastchange); #ifdef INET6 if ((ifp->if_flags & IFF_UP) != 0) { int s = splnet(); -- cgit v1.2.3