diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-06-23 14:30:41 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-06-23 14:30:41 +0000 |
commit | e6cf88e5df367ae03e6a2795b0841e142b9a50a0 (patch) | |
tree | 3d3d5798bcc7d80ee5753064d865d88d342331e8 /sys/net | |
parent | b34d67cf865b18ed97a75bc1c4caf7c458944cad (diff) |
update if_lastchange for evey IFF_UP change not only SIOCSIFFLAGS; henning@ ok
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if.c | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |