From 86cb214594355ba9efe9aa0205cb878a8e8f3ecd Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 5 Feb 2001 18:57:11 +0000 Subject: Make netgraph modules refuse to link with modules of a different ABI version. also try implement teh documented behaviour in socket nodes so that when there is only one hook, an unaddressed write/send will DTRT and send the data to that hook. --- sys/netgraph/ng_base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/netgraph/ng_base.c') diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c index d071f5f..860d210 100644 --- a/sys/netgraph/ng_base.c +++ b/sys/netgraph/ng_base.c @@ -63,7 +63,7 @@ #include #include -MODULE_VERSION(netgraph, 1); +MODULE_VERSION(netgraph, NG_ABI_VERSION); /* List of all active nodes */ static LIST_HEAD(, ng_node) ng_nodelist; @@ -1423,6 +1423,7 @@ ng_rmnode_self(node_p node) if (node == &ng_deadnode) return (0); + node->nd_flags |= NG_INVALID; if (node->nd_flags & NG_CLOSING) return (0); -- cgit v1.1