From 6cfd5a5a1d8c4a93c799f5e36a35e82908de3464 Mon Sep 17 00:00:00 2001 From: brooks Date: Sat, 25 May 2002 20:17:04 +0000 Subject: Move all unit number management cloned interfaces into the cloning code. The reverts the API change which made the _clone_destory() functions return an int instead of void bringing us into closer alignment with NetBSD. Reviewed by: net (a long time ago) --- sys/net/if.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/net/if.h') diff --git a/sys/net/if.h b/sys/net/if.h index de1b370..0074cec 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -67,16 +67,17 @@ struct if_clone { LIST_ENTRY(if_clone) ifc_list; /* on list of cloners */ const char *ifc_name; /* name of device, e.g. `gif' */ size_t ifc_namelen; /* length of name */ + int ifc_minifs; /* minimum number of interfaces */ int ifc_maxunit; /* maximum unit number */ unsigned char *ifc_units; /* bitmap to handle units */ int ifc_bmlen; /* bitmap length */ int (*ifc_create)(struct if_clone *, int); - int (*ifc_destroy)(struct ifnet *); + void (*ifc_destroy)(struct ifnet *); }; -#define IF_CLONE_INITIALIZER(name, create, destroy, maxunit) \ - { { 0 }, name, sizeof(name) - 1, maxunit, NULL, 0, create, destroy } +#define IF_CLONE_INITIALIZER(name, create, destroy, minifs, maxunit) \ + { { 0 }, name, sizeof(name) - 1, minifs, maxunit, NULL, 0, create, destroy } #endif /* -- cgit v1.1