summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_ether.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-12-14 18:33:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-12-14 18:33:43 +0000
commit5532e64697944ad4c710705ab1b564052a8f51af (patch)
tree183870f005f01f56ae179f355463d683575b35a0 /sys/netinet/ip_ether.h
parent4cb17e9667a272f7541dbee84ac942404facb823 (diff)
add sysctl entry points into various network layers, in particular to
provide netstat(1) with data it needs; ok claudio reyk
Diffstat (limited to 'sys/netinet/ip_ether.h')
-rw-r--r--sys/netinet/ip_ether.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet/ip_ether.h b/sys/netinet/ip_ether.h
index 7bcde9799a7..c2372557bd6 100644
--- a/sys/netinet/ip_ether.h
+++ b/sys/netinet/ip_ether.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ether.h,v 1.13 2002/06/09 16:26:10 itojun Exp $ */
+/* $OpenBSD: ip_ether.h,v 1.14 2007/12/14 18:33:41 deraadt Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@adk.gr)
*
@@ -54,11 +54,13 @@ struct etherip_header {
* Names for Ether-IP sysctl objects
*/
#define ETHERIPCTL_ALLOW 1 /* accept incoming EtherIP packets */
-#define ETHERIPCTL_MAXID 2
+#define ETHERIPCTL_STATS 2 /* etherip stats */
+#define ETHERIPCTL_MAXID 3
#define ETHERIPCTL_NAMES { \
{ 0, 0 }, \
{ "allow", CTLTYPE_INT }, \
+ { "stats", CTLTYPE_STRUCT }, \
}
#ifdef _KERNEL