File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 25
25
static int zero = 0 ;
26
26
static int one = 1 ;
27
27
static int ushort_max = USHRT_MAX ;
28
+ static int min_sndbuf = SOCK_MIN_SNDBUF ;
29
+ static int min_rcvbuf = SOCK_MIN_RCVBUF ;
28
30
29
31
static int net_msg_warn ; /* Unused, but still a sysctl */
30
32
@@ -237,31 +239,31 @@ static struct ctl_table net_core_table[] = {
237
239
.maxlen = sizeof (int ),
238
240
.mode = 0644 ,
239
241
.proc_handler = proc_dointvec_minmax ,
240
- .extra1 = & one ,
242
+ .extra1 = & min_sndbuf ,
241
243
},
242
244
{
243
245
.procname = "rmem_max" ,
244
246
.data = & sysctl_rmem_max ,
245
247
.maxlen = sizeof (int ),
246
248
.mode = 0644 ,
247
249
.proc_handler = proc_dointvec_minmax ,
248
- .extra1 = & one ,
250
+ .extra1 = & min_rcvbuf ,
249
251
},
250
252
{
251
253
.procname = "wmem_default" ,
252
254
.data = & sysctl_wmem_default ,
253
255
.maxlen = sizeof (int ),
254
256
.mode = 0644 ,
255
257
.proc_handler = proc_dointvec_minmax ,
256
- .extra1 = & one ,
258
+ .extra1 = & min_sndbuf ,
257
259
},
258
260
{
259
261
.procname = "rmem_default" ,
260
262
.data = & sysctl_rmem_default ,
261
263
.maxlen = sizeof (int ),
262
264
.mode = 0644 ,
263
265
.proc_handler = proc_dointvec_minmax ,
264
- .extra1 = & one ,
266
+ .extra1 = & min_rcvbuf ,
265
267
},
266
268
{
267
269
.procname = "dev_weight" ,
You can’t perform that action at this time.
0 commit comments