This repository was archived by the owner on Dec 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 2525static int zero = 0 ;
2626static int one = 1 ;
2727static int ushort_max = USHRT_MAX ;
28+ static int min_sndbuf = SOCK_MIN_SNDBUF ;
29+ static int min_rcvbuf = SOCK_MIN_RCVBUF ;
2830
2931#ifdef CONFIG_RPS
3032static int rps_sock_flow_sysctl (struct ctl_table * table , int write ,
@@ -223,31 +225,31 @@ static struct ctl_table net_core_table[] = {
223225 .maxlen = sizeof (int ),
224226 .mode = 0644 ,
225227 .proc_handler = proc_dointvec_minmax ,
226- .extra1 = & one ,
228+ .extra1 = & min_sndbuf ,
227229 },
228230 {
229231 .procname = "rmem_max" ,
230232 .data = & sysctl_rmem_max ,
231233 .maxlen = sizeof (int ),
232234 .mode = 0644 ,
233235 .proc_handler = proc_dointvec_minmax ,
234- .extra1 = & one ,
236+ .extra1 = & min_rcvbuf ,
235237 },
236238 {
237239 .procname = "wmem_default" ,
238240 .data = & sysctl_wmem_default ,
239241 .maxlen = sizeof (int ),
240242 .mode = 0644 ,
241243 .proc_handler = proc_dointvec_minmax ,
242- .extra1 = & one ,
244+ .extra1 = & min_sndbuf ,
243245 },
244246 {
245247 .procname = "rmem_default" ,
246248 .data = & sysctl_rmem_default ,
247249 .maxlen = sizeof (int ),
248250 .mode = 0644 ,
249251 .proc_handler = proc_dointvec_minmax ,
250- .extra1 = & one ,
252+ .extra1 = & min_rcvbuf ,
251253 },
252254 {
253255 .procname = "dev_weight" ,
You can’t perform that action at this time.
0 commit comments