From 2807c8cd41fd1112fbdc01fbead9c6ca6c5cd1f3 Mon Sep 17 00:00:00 2001 From: wollman Date: Thu, 31 Aug 1995 15:21:31 +0000 Subject: Add a few hooks (in the form of an array of four void *'s) to allow various bits of software to save some data in the ifnet structure without having to constantly change the declaration thereof. --- sys/net/if.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/net/if.h') diff --git a/sys/net/if.h b/sys/net/if.h index 6283851..f1e634b 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)if.h 8.1 (Berkeley) 6/10/93 - * $Id: if.h,v 1.20 1995/08/16 16:13:39 bde Exp $ + * $Id: if.h,v 1.21 1995/08/30 00:33:17 bde Exp $ */ #ifndef _NET_IF_H_ @@ -117,6 +117,8 @@ struct ifqueue { int ifq_drops; }; +#define IF_NPRIVATE 4 + /* * Structure describing information about an interface * which may be of interest to management entities. @@ -149,6 +151,7 @@ struct ifnet { void (*if_watchdog) /* timer routine */ __P((int)); struct ifqueue if_snd; /* output queue */ + void *if_private[IF_NPRIVATE]; /* opaque data for various clients */ }; #define if_mtu if_data.ifi_mtu #define if_type if_data.ifi_type -- cgit v1.1