summaryrefslogtreecommitdiffstats
path: root/net/x25/sysctl_net_x25.c
diff options
context:
space:
mode:
authorAndrew Hendry <andrew.hendry@gmail.com>2007-02-08 13:34:36 -0800
committerDavid S. Miller <davem@davemloft.net>2007-02-08 13:34:36 -0800
commit39e21c0d34fe769d06839679fa920217359a58b0 (patch)
tree954c04db643a0f4d9fb7e4dc686981a6b207ed57 /net/x25/sysctl_net_x25.c
parent95a9dc4390c8215d922e0ca2ebb95279261fe795 (diff)
downloadop-kernel-dev-39e21c0d34fe769d06839679fa920217359a58b0.zip
op-kernel-dev-39e21c0d34fe769d06839679fa920217359a58b0.tar.gz
[X.25]: Adds /proc/sys/net/x25/x25_forward to control forwarding.
echo "1" > /proc/sys/net/x25/x25_forward To turn on x25_forwarding, defaults to off Requires the previous patch. Signed-off-by: Andrew Hendry <andrew.hendry@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/x25/sysctl_net_x25.c')
-rw-r--r--net/x25/sysctl_net_x25.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/x25/sysctl_net_x25.c b/net/x25/sysctl_net_x25.c
index aabda59..2b2e7fd 100644
--- a/net/x25/sysctl_net_x25.c
+++ b/net/x25/sysctl_net_x25.c
@@ -73,6 +73,14 @@ static struct ctl_table x25_table[] = {
.extra1 = &min_timer,
.extra2 = &max_timer,
},
+ {
+ .ctl_name = NET_X25_FORWARD,
+ .procname = "x25_forward",
+ .data = &sysctl_x25_forward,
+ .maxlen = sizeof(int),
+ .mode = 0644,
+ .proc_handler = &proc_dointvec,
+ },
{ 0, },
};
OpenPOWER on IntegriCloud