summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-04-29 13:36:07 +0000
committerpeter <peter@FreeBSD.org>2000-04-29 13:36:07 +0000
commit0caafaec1cb5acab175162f71bd744cfd5402e07 (patch)
tree51102256c4589102156a09506fb8e1fd0be1fd73 /sys/netgraph
parentff69b85a830ca118614e0c953c0216d8ed90e24b (diff)
downloadFreeBSD-src-0caafaec1cb5acab175162f71bd744cfd5402e07.zip
FreeBSD-src-0caafaec1cb5acab175162f71bd744cfd5402e07.tar.gz
Minimal tweak to make the ng_XXX modules depend on netgraph so that they
see its symbols and link ok.
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/netgraph.h3
-rw-r--r--sys/netgraph/ng_base.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/sys/netgraph/netgraph.h b/sys/netgraph/netgraph.h
index fc7ca81..9c31d3c 100644
--- a/sys/netgraph/netgraph.h
+++ b/sys/netgraph/netgraph.h
@@ -243,7 +243,8 @@ static moduledata_t ng_##typename##_mod = { \
ng_mod_event, \
(typestructp) \
}; \
-DECLARE_MODULE(ng_##typename, ng_##typename##_mod, sub, order)
+DECLARE_MODULE(ng_##typename, ng_##typename##_mod, sub, order); \
+MODULE_DEPEND(ng_##typename, netgraph, 1, 1, 1)
#define NETGRAPH_INIT(tn, tp) \
NETGRAPH_INIT_ORDERED(tn, tp, SI_SUB_PSEUDO, SI_ORDER_ANY)
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c
index c5c6a0e..310012f 100644
--- a/sys/netgraph/ng_base.c
+++ b/sys/netgraph/ng_base.c
@@ -63,6 +63,8 @@
#include <netgraph/netgraph.h>
#include <netgraph/ng_parse.h>
+MODULE_VERSION(netgraph, 1);
+
/* List of all nodes */
static LIST_HEAD(, ng_node) nodelist;
OpenPOWER on IntegriCloud