summaryrefslogtreecommitdiffstats
path: root/sys/net/vnet.h
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2010-04-14 23:06:07 +0000
committerjulian <julian@FreeBSD.org>2010-04-14 23:06:07 +0000
commite5e811b1e993cd1b6f7f86b9431fb2fee8cbe8bc (patch)
treef588b70bdefc57599e36aed4eb8146919ba0eb5b /sys/net/vnet.h
parente2bd1cbb0ddd392b6fbcde0f81b44b59d52cece7 (diff)
downloadFreeBSD-src-e5e811b1e993cd1b6f7f86b9431fb2fee8cbe8bc.zip
FreeBSD-src-e5e811b1e993cd1b6f7f86b9431fb2fee8cbe8bc.tar.gz
Move two copies of the same definition to a common include file.
MFC after: 3 weeks
Diffstat (limited to 'sys/net/vnet.h')
-rw-r--r--sys/net/vnet.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/net/vnet.h b/sys/net/vnet.h
index fb2cc39..4cdfdef 100644
--- a/sys/net/vnet.h
+++ b/sys/net/vnet.h
@@ -92,6 +92,15 @@ struct vnet {
#include <sys/sx.h>
/*
+ * Location of the kernel's 'set_vnet' linker set.
+ */
+extern uintptr_t *__start_set_vnet;
+extern uintptr_t *__stop_set_vnet;
+
+#define VNET_START (uintptr_t)&__start_set_vnet
+#define VNET_STOP (uintptr_t)&__stop_set_vnet
+
+/*
* Functions to allocate and destroy virtual network stacks.
*/
struct vnet *vnet_alloc(void);
OpenPOWER on IntegriCloud