summaryrefslogtreecommitdiff
path: root/sys/net/if.h
diff options
context:
space:
mode:
authorjoshua stein <jcs@cvs.openbsd.org>2004-05-29 17:54:47 +0000
committerjoshua stein <jcs@cvs.openbsd.org>2004-05-29 17:54:47 +0000
commit4d102c539fde3c0ed85b6e72d7762111b986fdb3 (patch)
treecb546f34b9a8cba2250874c4d51940e2382efd28 /sys/net/if.h
parent25f31fc4bbca56a9826d5afd73ecf39068e32148 (diff)
introduce SIOCSIFDESCR and SIOCGIFDESCR to maintain interface
descriptions, configurable with ifconfig help from various, ok deraadt@
Diffstat (limited to 'sys/net/if.h')
-rw-r--r--sys/net/if.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index 98ec6ef3eaa..283ef39a693 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.h,v 1.52 2004/05/18 21:10:14 brad Exp $ */
+/* $OpenBSD: if.h,v 1.53 2004/05/29 17:54:45 jcs Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -165,6 +165,11 @@ TAILQ_HEAD(ifnet_head, ifnet); /* the actual queue head */
#define IFNAMSIZ 16
#define IF_NAMESIZE IFNAMSIZ
+/*
+ * Length of interface description, including terminating '\0'.
+ */
+#define IFDESCRSIZE 64
+
struct ifnet { /* and the entries */
void *if_softc; /* lower-level data for this if */
TAILQ_ENTRY(ifnet) if_list; /* all struct ifnets are chained */
@@ -180,6 +185,7 @@ struct ifnet { /* and the entries */
short if_flags; /* up/down, broadcast, etc. */
struct if_data if_data; /* stats and other data about if */
int if_capabilities; /* interface capabilities */
+ char if_description[IFDESCRSIZE]; /* interface description */
/* procedure handles */
/* output routine (enqueue) */