summaryrefslogtreecommitdiffstats
path: root/sys/net/if.h
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2002-05-25 20:17:04 +0000
committerbrooks <brooks@FreeBSD.org>2002-05-25 20:17:04 +0000
commit6cfd5a5a1d8c4a93c799f5e36a35e82908de3464 (patch)
treee660b083146de9ff5a32c2ffb3bf4b2a015c1a0b /sys/net/if.h
parentc23d71a3554dd96732f409c3956d8a2aed2ad182 (diff)
downloadFreeBSD-src-6cfd5a5a1d8c4a93c799f5e36a35e82908de3464.zip
FreeBSD-src-6cfd5a5a1d8c4a93c799f5e36a35e82908de3464.tar.gz
Move all unit number management cloned interfaces into the cloning
code. The reverts the API change which made the <if>_clone_destory() functions return an int instead of void bringing us into closer alignment with NetBSD. Reviewed by: net (a long time ago)
Diffstat (limited to 'sys/net/if.h')
-rw-r--r--sys/net/if.h7
1 files changed, 4 insertions, 3 deletions
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
/*
OpenPOWER on IntegriCloud