summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/net/if.c1
-rw-r--r--sys/net/if.h5
-rw-r--r--sys/sys/param.h2
3 files changed, 6 insertions, 2 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 1ba833e..7a84bf8 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -384,6 +384,7 @@ if_attach(struct ifnet *ifp)
TAILQ_INIT(&ifp->if_multiaddrs);
knlist_init(&ifp->if_klist, NULL);
getmicrotime(&ifp->if_lastchange);
+ ifp->if_data.ifi_epoch = time_second;
#ifdef MAC
mac_init_ifnet(ifp);
diff --git a/sys/net/if.h b/sys/net/if.h
index 8b32fd1..77ffb1a 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -102,7 +102,10 @@ struct if_data {
u_long ifi_iqdrops; /* dropped on input, this interface */
u_long ifi_noproto; /* destined for unsupported protocol */
u_long ifi_hwassist; /* HW offload capabilities */
- u_long ifi_unused; /* XXX was ifi_xmittiming */
+ time_t ifi_epoch; /* time of attach or stat reset */
+#ifdef __alpha__
+ u_int ifi_timepad; /* time_t is int, not long on alpha */
+#endif
struct timeval ifi_lastchange; /* time of last administrative change */
};
diff --git a/sys/sys/param.h b/sys/sys/param.h
index 7fad9e9..8b062df 100644
--- a/sys/sys/param.h
+++ b/sys/sys/param.h
@@ -57,7 +57,7 @@
* is created, otherwise 1.
*/
#undef __FreeBSD_version
-#define __FreeBSD_version 600002 /* Master, propagated to newvers */
+#define __FreeBSD_version 600003 /* Master, propagated to newvers */
#ifndef LOCORE
#include <sys/types.h>
OpenPOWER on IntegriCloud