diff options
author | Xin Long <lucien.xin@gmail.com> | 2019-08-26 04:30:03 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-27 23:54:14 -0400 |
commit | 2f5268a9249b87d49ab3c7050f99064e6d1a8bb0 (patch) | |
tree | 5725b06ba7c13b05af6091a52acd3d42cd03debe | |
parent | 1b0b8114b9549dee6490e728cd787f808b586158 (diff) |
sctp: allow users to set netns ecn flag with sysctl
sysctl net.sctp.ecn_enable is added in this patch. It will allow
users to change the default sctp ecn flag, net.sctp.ecn_enable.
This feature was also required on this thread:
http://lkml.iu.edu/hypermail/linux/kernel/0812.1/01858.html
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/sctp/sysctl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/sctp/sysctl.c b/net/sctp/sysctl.c index 1250751bca1b..238cf1737576 100644 --- a/net/sctp/sysctl.c +++ b/net/sctp/sysctl.c | |||
@@ -278,6 +278,13 @@ static struct ctl_table sctp_net_table[] = { | |||
278 | .proc_handler = proc_dointvec, | 278 | .proc_handler = proc_dointvec, |
279 | }, | 279 | }, |
280 | { | 280 | { |
281 | .procname = "ecn_enable", | ||
282 | .data = &init_net.sctp.ecn_enable, | ||
283 | .maxlen = sizeof(int), | ||
284 | .mode = 0644, | ||
285 | .proc_handler = proc_dointvec, | ||
286 | }, | ||
287 | { | ||
281 | .procname = "addr_scope_policy", | 288 | .procname = "addr_scope_policy", |
282 | .data = &init_net.sctp.scope_policy, | 289 | .data = &init_net.sctp.scope_policy, |
283 | .maxlen = sizeof(int), | 290 | .maxlen = sizeof(int), |