Skip to content

Commit 2f5268a

Browse files
lxindavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1b0b811 commit 2f5268a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

net/sctp/sysctl.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,13 @@ static struct ctl_table sctp_net_table[] = {
277277
.mode = 0644,
278278
.proc_handler = proc_dointvec,
279279
},
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+
},
280287
{
281288
.procname = "addr_scope_policy",
282289
.data = &init_net.sctp.scope_policy,

0 commit comments

Comments
 (0)