aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_base.c
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>2001-02-23 16:34:22 +0000
committerJulian Elischer <julian@FreeBSD.org>2001-02-23 16:34:22 +0000
commitbfa7e882d1e98136177db4dae104d5b263a61fdc (patch)
treecd89700d0f098c7afa8dc270e2e6285f6f457889 /sys/netgraph/ng_base.c
parent7c1d4b3ae901ee2c7a3537b10db787464fb26df0 (diff)
downloadsrc-bfa7e882d1e98136177db4dae104d5b263a61fdc.tar.gz
src-bfa7e882d1e98136177db4dae104d5b263a61fdc.zip
Shuffle sysctls a bit (thankyou whoever made them dynamic for modules)
and add a sysctl to pppoe to activate non standard ethertypes so that idiot ISPs (apparently in France) who use equipment from idiot suppliers (rumour says 3com) who use nonstandard ethertypes can still connect. "yep, sure we do pppoe, we use a different identifier to that dictated in the standard, but sure it's pppoe!" sysctl -w net.graph.stupid_isp=1 enables the changeover.
Notes
Notes: svn path=/head/; revision=72946
Diffstat (limited to 'sys/netgraph/ng_base.c')
-rw-r--r--sys/netgraph/ng_base.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c
index 177aeadc7ae8..f512b984db9e 100644
--- a/sys/netgraph/ng_base.c
+++ b/sys/netgraph/ng_base.c
@@ -55,6 +55,7 @@
#include <sys/queue.h>
#include <sys/mbuf.h>
#include <sys/ctype.h>
+#include <sys/sysctl.h>
#include <machine/limits.h>
#include <net/netisr.h>
@@ -2948,6 +2949,9 @@ static moduledata_t netgraph_mod = {
(NULL)
};
DECLARE_MODULE(netgraph, netgraph_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE);
+SYSCTL_NODE(_net, OID_AUTO, graph, CTLFLAG_RW, 0, "netgraph Family");
+SYSCTL_INT(_net_graph, OID_AUTO, abi_version, CTLFLAG_RD, 0, NG_ABI_VERSION,"");
+SYSCTL_INT(_net_graph, OID_AUTO, msg_version, CTLFLAG_RD, 0, NG_VERSION, "");
/************************************************************************
Queue element get/free routines