summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMasao Uebayashi <uebayasi@cvs.openbsd.org>2015-10-05 15:19:30 +0000
committerMasao Uebayashi <uebayasi@cvs.openbsd.org>2015-10-05 15:19:30 +0000
commit7a4c2a7c8b498def113fab6b56dd16ec8052450f (patch)
tree01dccb486fc95c22110e9b93ba00c76a2c2e5539 /sys
parent1c7b84f6f0e519aaa4752cc5c803b3713a236e8c (diff)
Add ifi_oqdrops and its alias to struct if_data.
Necessary bumps in Ports will be handled by sthen@. OK mpi@ dlg@
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if.h3
-rw-r--r--sys/net/if_var.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index 09c2e98ba20..5b17832bd99 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.h,v 1.168 2015/09/27 16:50:03 stsp Exp $ */
+/* $OpenBSD: if.h,v 1.169 2015/10/05 15:19:29 uebayasi Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -115,6 +115,7 @@ struct if_data {
u_int64_t ifi_imcasts; /* packets received via multicast */
u_int64_t ifi_omcasts; /* packets sent via multicast */
u_int64_t ifi_iqdrops; /* dropped on input, this interface */
+ u_int64_t ifi_oqdrops; /* dropped on output, this interface */
u_int64_t ifi_noproto; /* destined for unsupported protocol */
u_int32_t ifi_capabilities; /* interface capabilities */
struct timeval ifi_lastchange; /* last operational state change */
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index 2df9825013e..a086449ba09 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_var.h,v 1.46 2015/09/30 11:33:51 dlg Exp $ */
+/* $OpenBSD: if_var.h,v 1.47 2015/10/05 15:19:29 uebayasi Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -194,6 +194,7 @@ struct ifnet { /* and the entries */
#define if_imcasts if_data.ifi_imcasts
#define if_omcasts if_data.ifi_omcasts
#define if_iqdrops if_data.ifi_iqdrops
+#define if_oqdrops if_data.ifi_oqdrops
#define if_noproto if_data.ifi_noproto
#define if_lastchange if_data.ifi_lastchange
#define if_capabilities if_data.ifi_capabilities