]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/sctp/sysctl.c
netfilter: nf_flow_table_offload: Correct memcpy size for flow_overload_mangle()
[linux.git] / net / sctp / sysctl.c
index 238cf1737576ae2c9358cf94f0be5ccb23ace73a..4740aa70e6528981c4eee414e16d223d0f544151 100644 (file)
@@ -34,6 +34,8 @@ static int rto_alpha_min = 0;
 static int rto_beta_min = 0;
 static int rto_alpha_max = 1000;
 static int rto_beta_max = 1000;
+static int pf_expose_max = SCTP_PF_EXPOSE_MAX;
+static int ps_retrans_max = SCTP_PS_RETRANS_MAX;
 
 static unsigned long max_autoclose_min = 0;
 static unsigned long max_autoclose_max =
@@ -212,7 +214,16 @@ static struct ctl_table sctp_net_table[] = {
                .mode           = 0644,
                .proc_handler   = proc_dointvec_minmax,
                .extra1         = SYSCTL_ZERO,
-               .extra2         = SYSCTL_INT_MAX,
+               .extra2         = &init_net.sctp.ps_retrans,
+       },
+       {
+               .procname       = "ps_retrans",
+               .data           = &init_net.sctp.ps_retrans,
+               .maxlen         = sizeof(int),
+               .mode           = 0644,
+               .proc_handler   = proc_dointvec_minmax,
+               .extra1         = &init_net.sctp.pf_retrans,
+               .extra2         = &ps_retrans_max,
        },
        {
                .procname       = "sndbuf_policy",
@@ -318,6 +329,15 @@ static struct ctl_table sctp_net_table[] = {
                .mode           = 0644,
                .proc_handler   = proc_dointvec,
        },
+       {
+               .procname       = "pf_expose",
+               .data           = &init_net.sctp.pf_expose,
+               .maxlen         = sizeof(int),
+               .mode           = 0644,
+               .proc_handler   = proc_dointvec_minmax,
+               .extra1         = SYSCTL_ZERO,
+               .extra2         = &pf_expose_max,
+       },
 
        { /* sentinel */ }
 };