Vlad Yasevich | 60c778b | 2008-01-11 09:57:09 -0500 | [diff] [blame] | 1 | /* SCTP kernel implementation |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | * (C) Copyright IBM Corp. 2002, 2004 |
| 3 | * Copyright (c) 2002 Intel Corp. |
| 4 | * |
Vlad Yasevich | 60c778b | 2008-01-11 09:57:09 -0500 | [diff] [blame] | 5 | * This file is part of the SCTP kernel implementation |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | * |
| 7 | * Sysctl related interfaces for SCTP. |
| 8 | * |
Vlad Yasevich | 60c778b | 2008-01-11 09:57:09 -0500 | [diff] [blame] | 9 | * This SCTP implementation is free software; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | * you can redistribute it and/or modify it under the terms of |
| 11 | * the GNU General Public License as published by |
| 12 | * the Free Software Foundation; either version 2, or (at your option) |
| 13 | * any later version. |
| 14 | * |
Vlad Yasevich | 60c778b | 2008-01-11 09:57:09 -0500 | [diff] [blame] | 15 | * This SCTP implementation is distributed in the hope that it |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied |
| 17 | * ************************ |
| 18 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 19 | * See the GNU General Public License for more details. |
| 20 | * |
| 21 | * You should have received a copy of the GNU General Public License |
| 22 | * along with GNU CC; see the file COPYING. If not, write to |
| 23 | * the Free Software Foundation, 59 Temple Place - Suite 330, |
| 24 | * Boston, MA 02111-1307, USA. |
| 25 | * |
| 26 | * Please send any bug reports or fixes you make to the |
| 27 | * email address(es): |
| 28 | * lksctp developers <lksctp-developers@lists.sourceforge.net> |
| 29 | * |
| 30 | * Or submit a bug report through the following website: |
| 31 | * http://www.sf.net/projects/lksctp |
| 32 | * |
| 33 | * Written or modified by: |
| 34 | * Mingqin Liu <liuming@us.ibm.com> |
| 35 | * Jon Grimm <jgrimm@us.ibm.com> |
| 36 | * Ardelle Fan <ardelle.fan@intel.com> |
| 37 | * Ryan Layer <rmlayer@us.ibm.com> |
| 38 | * Sridhar Samudrala <sri@us.ibm.com> |
| 39 | * |
| 40 | * Any bugs reported given to us we will try to fix... any fixes shared will |
| 41 | * be incorporated into the next SCTP release. |
| 42 | */ |
| 43 | |
| 44 | #include <net/sctp/structs.h> |
Adrian Bunk | 8c5955d | 2005-09-05 18:07:42 -0700 | [diff] [blame] | 45 | #include <net/sctp/sctp.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 46 | #include <linux/sysctl.h> |
| 47 | |
Vladislav Yasevich | 3fd091e | 2006-08-22 13:29:17 -0700 | [diff] [blame] | 48 | static int zero = 0; |
| 49 | static int one = 1; |
| 50 | static int timer_max = 86400000; /* ms in one day */ |
| 51 | static int int_max = INT_MAX; |
Jean-Mickael Guerin | d48e074 | 2009-05-13 00:03:20 +0200 | [diff] [blame] | 52 | static int sack_timer_min = 1; |
| 53 | static int sack_timer_max = 500; |
Bhaskar Dutta | 7238843 | 2009-09-03 17:25:47 +0530 | [diff] [blame] | 54 | static int addr_scope_max = 3; /* check sctp_scope_policy_t in include/net/sctp/constants.h for max entries */ |
Vlad Yasevich | 90f2f53 | 2009-11-23 15:53:57 -0500 | [diff] [blame^] | 55 | static int rwnd_scale_max = 16; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 56 | |
Vlad Yasevich | 007e393 | 2007-09-16 16:04:37 -0700 | [diff] [blame] | 57 | extern int sysctl_sctp_mem[3]; |
| 58 | extern int sysctl_sctp_rmem[3]; |
| 59 | extern int sysctl_sctp_wmem[3]; |
Neil Horman | 4d93df0 | 2007-08-15 16:07:44 -0700 | [diff] [blame] | 60 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 61 | static ctl_table sctp_table[] = { |
| 62 | { |
| 63 | .ctl_name = NET_SCTP_RTO_INITIAL, |
| 64 | .procname = "rto_initial", |
| 65 | .data = &sctp_rto_initial, |
Vladislav Yasevich | 3fd091e | 2006-08-22 13:29:17 -0700 | [diff] [blame] | 66 | .maxlen = sizeof(unsigned int), |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 67 | .mode = 0644, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 68 | .proc_handler = proc_dointvec_minmax, |
| 69 | .strategy = sysctl_intvec, |
Vladislav Yasevich | 3fd091e | 2006-08-22 13:29:17 -0700 | [diff] [blame] | 70 | .extra1 = &one, |
| 71 | .extra2 = &timer_max |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 72 | }, |
| 73 | { |
| 74 | .ctl_name = NET_SCTP_RTO_MIN, |
| 75 | .procname = "rto_min", |
| 76 | .data = &sctp_rto_min, |
Vladislav Yasevich | 3fd091e | 2006-08-22 13:29:17 -0700 | [diff] [blame] | 77 | .maxlen = sizeof(unsigned int), |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 78 | .mode = 0644, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 79 | .proc_handler = proc_dointvec_minmax, |
| 80 | .strategy = sysctl_intvec, |
Vladislav Yasevich | 3fd091e | 2006-08-22 13:29:17 -0700 | [diff] [blame] | 81 | .extra1 = &one, |
| 82 | .extra2 = &timer_max |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 83 | }, |
| 84 | { |
| 85 | .ctl_name = NET_SCTP_RTO_MAX, |
| 86 | .procname = "rto_max", |
| 87 | .data = &sctp_rto_max, |
Vladislav Yasevich | 3fd091e | 2006-08-22 13:29:17 -0700 | [diff] [blame] | 88 | .maxlen = sizeof(unsigned int), |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 89 | .mode = 0644, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 90 | .proc_handler = proc_dointvec_minmax, |
| 91 | .strategy = sysctl_intvec, |
Vladislav Yasevich | 3fd091e | 2006-08-22 13:29:17 -0700 | [diff] [blame] | 92 | .extra1 = &one, |
| 93 | .extra2 = &timer_max |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 94 | }, |
| 95 | { |
| 96 | .ctl_name = NET_SCTP_VALID_COOKIE_LIFE, |
| 97 | .procname = "valid_cookie_life", |
| 98 | .data = &sctp_valid_cookie_life, |
Vladislav Yasevich | 3fd091e | 2006-08-22 13:29:17 -0700 | [diff] [blame] | 99 | .maxlen = sizeof(unsigned int), |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 100 | .mode = 0644, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 101 | .proc_handler = proc_dointvec_minmax, |
| 102 | .strategy = sysctl_intvec, |
Vladislav Yasevich | 3fd091e | 2006-08-22 13:29:17 -0700 | [diff] [blame] | 103 | .extra1 = &one, |
| 104 | .extra2 = &timer_max |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 105 | }, |
| 106 | { |
| 107 | .ctl_name = NET_SCTP_MAX_BURST, |
| 108 | .procname = "max_burst", |
| 109 | .data = &sctp_max_burst, |
| 110 | .maxlen = sizeof(int), |
| 111 | .mode = 0644, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 112 | .proc_handler = proc_dointvec_minmax, |
| 113 | .strategy = sysctl_intvec, |
Vladislav Yasevich | 3fd091e | 2006-08-22 13:29:17 -0700 | [diff] [blame] | 114 | .extra1 = &zero, |
| 115 | .extra2 = &int_max |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 116 | }, |
| 117 | { |
| 118 | .ctl_name = NET_SCTP_ASSOCIATION_MAX_RETRANS, |
| 119 | .procname = "association_max_retrans", |
| 120 | .data = &sctp_max_retrans_association, |
| 121 | .maxlen = sizeof(int), |
| 122 | .mode = 0644, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 123 | .proc_handler = proc_dointvec_minmax, |
| 124 | .strategy = sysctl_intvec, |
Vladislav Yasevich | 3fd091e | 2006-08-22 13:29:17 -0700 | [diff] [blame] | 125 | .extra1 = &one, |
| 126 | .extra2 = &int_max |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 127 | }, |
| 128 | { |
Neil Horman | 4eb701d | 2005-04-28 12:02:04 -0700 | [diff] [blame] | 129 | .ctl_name = NET_SCTP_SNDBUF_POLICY, |
| 130 | .procname = "sndbuf_policy", |
| 131 | .data = &sctp_sndbuf_policy, |
| 132 | .maxlen = sizeof(int), |
| 133 | .mode = 0644, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 134 | .proc_handler = proc_dointvec, |
| 135 | .strategy = sysctl_intvec |
Neil Horman | 4eb701d | 2005-04-28 12:02:04 -0700 | [diff] [blame] | 136 | }, |
| 137 | { |
Neil Horman | 049b3ff | 2005-11-11 16:08:24 -0800 | [diff] [blame] | 138 | .ctl_name = NET_SCTP_RCVBUF_POLICY, |
| 139 | .procname = "rcvbuf_policy", |
| 140 | .data = &sctp_rcvbuf_policy, |
| 141 | .maxlen = sizeof(int), |
| 142 | .mode = 0644, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 143 | .proc_handler = proc_dointvec, |
| 144 | .strategy = sysctl_intvec |
Neil Horman | 049b3ff | 2005-11-11 16:08:24 -0800 | [diff] [blame] | 145 | }, |
| 146 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 147 | .ctl_name = NET_SCTP_PATH_MAX_RETRANS, |
| 148 | .procname = "path_max_retrans", |
| 149 | .data = &sctp_max_retrans_path, |
| 150 | .maxlen = sizeof(int), |
| 151 | .mode = 0644, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 152 | .proc_handler = proc_dointvec_minmax, |
| 153 | .strategy = sysctl_intvec, |
Vladislav Yasevich | 3fd091e | 2006-08-22 13:29:17 -0700 | [diff] [blame] | 154 | .extra1 = &one, |
| 155 | .extra2 = &int_max |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 156 | }, |
| 157 | { |
| 158 | .ctl_name = NET_SCTP_MAX_INIT_RETRANSMITS, |
| 159 | .procname = "max_init_retransmits", |
| 160 | .data = &sctp_max_retrans_init, |
| 161 | .maxlen = sizeof(int), |
| 162 | .mode = 0644, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 163 | .proc_handler = proc_dointvec_minmax, |
| 164 | .strategy = sysctl_intvec, |
Vladislav Yasevich | 3fd091e | 2006-08-22 13:29:17 -0700 | [diff] [blame] | 165 | .extra1 = &one, |
| 166 | .extra2 = &int_max |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 167 | }, |
| 168 | { |
| 169 | .ctl_name = NET_SCTP_HB_INTERVAL, |
| 170 | .procname = "hb_interval", |
| 171 | .data = &sctp_hb_interval, |
Vladislav Yasevich | 3fd091e | 2006-08-22 13:29:17 -0700 | [diff] [blame] | 172 | .maxlen = sizeof(unsigned int), |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 173 | .mode = 0644, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 174 | .proc_handler = proc_dointvec_minmax, |
| 175 | .strategy = sysctl_intvec, |
Vladislav Yasevich | 3fd091e | 2006-08-22 13:29:17 -0700 | [diff] [blame] | 176 | .extra1 = &one, |
| 177 | .extra2 = &timer_max |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 178 | }, |
| 179 | { |
| 180 | .ctl_name = NET_SCTP_PRESERVE_ENABLE, |
| 181 | .procname = "cookie_preserve_enable", |
| 182 | .data = &sctp_cookie_preserve_enable, |
Vlad Yasevich | 8116ffa | 2006-01-17 11:55:17 -0800 | [diff] [blame] | 183 | .maxlen = sizeof(int), |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 184 | .mode = 0644, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 185 | .proc_handler = proc_dointvec, |
| 186 | .strategy = sysctl_intvec |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 187 | }, |
| 188 | { |
| 189 | .ctl_name = NET_SCTP_RTO_ALPHA, |
| 190 | .procname = "rto_alpha_exp_divisor", |
| 191 | .data = &sctp_rto_alpha, |
| 192 | .maxlen = sizeof(int), |
Vladislav Yasevich | 3fd091e | 2006-08-22 13:29:17 -0700 | [diff] [blame] | 193 | .mode = 0444, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 194 | .proc_handler = proc_dointvec, |
| 195 | .strategy = sysctl_intvec |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 196 | }, |
| 197 | { |
| 198 | .ctl_name = NET_SCTP_RTO_BETA, |
| 199 | .procname = "rto_beta_exp_divisor", |
| 200 | .data = &sctp_rto_beta, |
| 201 | .maxlen = sizeof(int), |
Vladislav Yasevich | 3fd091e | 2006-08-22 13:29:17 -0700 | [diff] [blame] | 202 | .mode = 0444, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 203 | .proc_handler = proc_dointvec, |
| 204 | .strategy = sysctl_intvec |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 205 | }, |
| 206 | { |
| 207 | .ctl_name = NET_SCTP_ADDIP_ENABLE, |
| 208 | .procname = "addip_enable", |
| 209 | .data = &sctp_addip_enable, |
| 210 | .maxlen = sizeof(int), |
| 211 | .mode = 0644, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 212 | .proc_handler = proc_dointvec, |
| 213 | .strategy = sysctl_intvec |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 214 | }, |
| 215 | { |
| 216 | .ctl_name = NET_SCTP_PRSCTP_ENABLE, |
| 217 | .procname = "prsctp_enable", |
| 218 | .data = &sctp_prsctp_enable, |
| 219 | .maxlen = sizeof(int), |
| 220 | .mode = 0644, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 221 | .proc_handler = proc_dointvec, |
| 222 | .strategy = sysctl_intvec |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 223 | }, |
Vlad Yasevich | 2f85a42 | 2005-06-28 13:24:23 -0700 | [diff] [blame] | 224 | { |
| 225 | .ctl_name = NET_SCTP_SACK_TIMEOUT, |
| 226 | .procname = "sack_timeout", |
| 227 | .data = &sctp_sack_timeout, |
Jean-Mickael Guerin | d48e074 | 2009-05-13 00:03:20 +0200 | [diff] [blame] | 228 | .maxlen = sizeof(int), |
Vlad Yasevich | 2f85a42 | 2005-06-28 13:24:23 -0700 | [diff] [blame] | 229 | .mode = 0644, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 230 | .proc_handler = proc_dointvec_minmax, |
| 231 | .strategy = sysctl_intvec, |
Vlad Yasevich | 2f85a42 | 2005-06-28 13:24:23 -0700 | [diff] [blame] | 232 | .extra1 = &sack_timer_min, |
| 233 | .extra2 = &sack_timer_max, |
| 234 | }, |
Neil Horman | 4d93df0 | 2007-08-15 16:07:44 -0700 | [diff] [blame] | 235 | { |
| 236 | .ctl_name = CTL_UNNUMBERED, |
| 237 | .procname = "sctp_mem", |
| 238 | .data = &sysctl_sctp_mem, |
| 239 | .maxlen = sizeof(sysctl_sctp_mem), |
| 240 | .mode = 0644, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 241 | .proc_handler = proc_dointvec, |
Neil Horman | 4d93df0 | 2007-08-15 16:07:44 -0700 | [diff] [blame] | 242 | }, |
| 243 | { |
| 244 | .ctl_name = CTL_UNNUMBERED, |
| 245 | .procname = "sctp_rmem", |
| 246 | .data = &sysctl_sctp_rmem, |
| 247 | .maxlen = sizeof(sysctl_sctp_rmem), |
| 248 | .mode = 0644, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 249 | .proc_handler = proc_dointvec, |
Neil Horman | 4d93df0 | 2007-08-15 16:07:44 -0700 | [diff] [blame] | 250 | }, |
| 251 | { |
| 252 | .ctl_name = CTL_UNNUMBERED, |
| 253 | .procname = "sctp_wmem", |
| 254 | .data = &sysctl_sctp_wmem, |
| 255 | .maxlen = sizeof(sysctl_sctp_wmem), |
| 256 | .mode = 0644, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 257 | .proc_handler = proc_dointvec, |
Neil Horman | 4d93df0 | 2007-08-15 16:07:44 -0700 | [diff] [blame] | 258 | }, |
Vlad Yasevich | a29a5bd | 2007-09-16 19:31:35 -0700 | [diff] [blame] | 259 | { |
| 260 | .ctl_name = CTL_UNNUMBERED, |
| 261 | .procname = "auth_enable", |
| 262 | .data = &sctp_auth_enable, |
| 263 | .maxlen = sizeof(int), |
| 264 | .mode = 0644, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 265 | .proc_handler = proc_dointvec, |
| 266 | .strategy = sysctl_intvec |
Vlad Yasevich | a29a5bd | 2007-09-16 19:31:35 -0700 | [diff] [blame] | 267 | }, |
Vlad Yasevich | 73d9c4f | 2007-10-24 17:24:26 -0400 | [diff] [blame] | 268 | { |
| 269 | .ctl_name = CTL_UNNUMBERED, |
| 270 | .procname = "addip_noauth_enable", |
| 271 | .data = &sctp_addip_noauth, |
| 272 | .maxlen = sizeof(int), |
| 273 | .mode = 0644, |
Alexey Dobriyan | 6d9f239 | 2008-11-03 18:21:05 -0800 | [diff] [blame] | 274 | .proc_handler = proc_dointvec, |
| 275 | .strategy = sysctl_intvec |
Vlad Yasevich | 73d9c4f | 2007-10-24 17:24:26 -0400 | [diff] [blame] | 276 | }, |
Bhaskar Dutta | 7238843 | 2009-09-03 17:25:47 +0530 | [diff] [blame] | 277 | { |
| 278 | .ctl_name = CTL_UNNUMBERED, |
| 279 | .procname = "addr_scope_policy", |
| 280 | .data = &sctp_scope_policy, |
| 281 | .maxlen = sizeof(int), |
| 282 | .mode = 0644, |
| 283 | .proc_handler = &proc_dointvec_minmax, |
| 284 | .strategy = &sysctl_intvec, |
| 285 | .extra1 = &zero, |
| 286 | .extra2 = &addr_scope_max, |
| 287 | }, |
Vlad Yasevich | 90f2f53 | 2009-11-23 15:53:57 -0500 | [diff] [blame^] | 288 | { |
| 289 | .ctl_name = CTL_UNNUMBERED, |
| 290 | .procname = "rwnd_update_shift", |
| 291 | .data = &sctp_rwnd_upd_shift, |
| 292 | .maxlen = sizeof(int), |
| 293 | .mode = 0644, |
| 294 | .proc_handler = &proc_dointvec_minmax, |
| 295 | .strategy = &sysctl_intvec, |
| 296 | .extra1 = &one, |
| 297 | .extra2 = &rwnd_scale_max, |
| 298 | }, |
| 299 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 300 | { .ctl_name = 0 } |
| 301 | }; |
| 302 | |
Pavel Emelyanov | b5ccd79 | 2008-01-09 00:30:05 -0800 | [diff] [blame] | 303 | static struct ctl_path sctp_path[] = { |
| 304 | { .procname = "net", .ctl_name = CTL_NET, }, |
| 305 | { .procname = "sctp", .ctl_name = NET_SCTP, }, |
| 306 | { } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 307 | }; |
| 308 | |
| 309 | static struct ctl_table_header * sctp_sysctl_header; |
| 310 | |
| 311 | /* Sysctl registration. */ |
| 312 | void sctp_sysctl_register(void) |
| 313 | { |
Pavel Emelyanov | b5ccd79 | 2008-01-09 00:30:05 -0800 | [diff] [blame] | 314 | sctp_sysctl_header = register_sysctl_paths(sctp_path, sctp_table); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 315 | } |
| 316 | |
| 317 | /* Sysctl deregistration. */ |
| 318 | void sctp_sysctl_unregister(void) |
| 319 | { |
| 320 | unregister_sysctl_table(sctp_sysctl_header); |
| 321 | } |