diff options
author | wollman <wollman@FreeBSD.org> | 1995-08-31 15:21:31 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-08-31 15:21:31 +0000 |
commit | 2807c8cd41fd1112fbdc01fbead9c6ca6c5cd1f3 (patch) | |
tree | 9128f8f17515feabc5264e8be42902bfaef080f1 /sys/net/if.h | |
parent | b4490d7ddfb097e187678481e355b3b3c63f3b56 (diff) | |
download | FreeBSD-src-2807c8cd41fd1112fbdc01fbead9c6ca6c5cd1f3.zip FreeBSD-src-2807c8cd41fd1112fbdc01fbead9c6ca6c5cd1f3.tar.gz |
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.
Diffstat (limited to 'sys/net/if.h')
-rw-r--r-- | sys/net/if.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 |