1 /* -*- linux-c -*-
2 * sysctl_net_core.c: sysctl interface to net core subsystem.
3 *
4 * Begun April 1, 1996, Mike Shaver.
5 * Added /proc/sys/net/core directory entry (empty =) ). [MS]
6 */
7
8 #include <linux/mm.h>
9 #include <linux/sysctl.h>
10 #include <linux/config.h>
11
12 #ifdef CONFIG_SYSCTL
13
14 extern int netdev_max_backlog;
15 extern int no_cong_thresh;
16 extern int no_cong;
17 extern int lo_cong;
18 extern int mod_cong;
19 extern int netdev_fastroute;
20 extern int net_msg_cost;
21 extern int net_msg_burst;
22
23 extern __u32 sysctl_wmem_max;
24 extern __u32 sysctl_rmem_max;
25 extern __u32 sysctl_wmem_default;
26 extern __u32 sysctl_rmem_default;
27
28 extern int sysctl_core_destroy_delay;
29 extern int sysctl_optmem_max;
30 extern int sysctl_hot_list_len;
31
32 #ifdef CONFIG_NET_DIVERT
33 extern char sysctl_divert_version[];
34 #endif /* CONFIG_NET_DIVERT */
35
36 ctl_table core_table[] = {
37 #ifdef CONFIG_NET
38 {NET_CORE_WMEM_MAX, "wmem_max",
39 &sysctl_wmem_max, sizeof(int), 0644, NULL,
40 &proc_dointvec},
41 {NET_CORE_RMEM_MAX, "rmem_max",
42 &sysctl_rmem_max, sizeof(int), 0644, NULL,
43 &proc_dointvec},
44 {NET_CORE_WMEM_DEFAULT, "wmem_default",
45 &sysctl_wmem_default, sizeof(int), 0644, NULL,
46 &proc_dointvec},
47 {NET_CORE_RMEM_DEFAULT, "rmem_default",
48 &sysctl_rmem_default, sizeof(int), 0644, NULL,
49 &proc_dointvec},
50 {NET_CORE_MAX_BACKLOG, "netdev_max_backlog",
51 &netdev_max_backlog, sizeof(int), 0644, NULL,
52 &proc_dointvec},
53 {NET_CORE_NO_CONG_THRESH, "no_cong_thresh",
54 &no_cong, sizeof(int), 0644, NULL,
55 &proc_dointvec},
56 {NET_CORE_NO_CONG, "no_cong",
57 &no_cong, sizeof(int), 0644, NULL,
58 &proc_dointvec},
59 {NET_CORE_LO_CONG, "lo_cong",
60 &lo_cong, sizeof(int), 0644, NULL,
61 &proc_dointvec},
62 {NET_CORE_MOD_CONG, "mod_cong",
63 &mod_cong, sizeof(int), 0644, NULL,
64 &proc_dointvec},
65 #ifdef CONFIG_NET_FASTROUTE
66 {NET_CORE_FASTROUTE, "netdev_fastroute",
67 &netdev_fastroute, sizeof(int), 0644, NULL,
68 &proc_dointvec},
69 #endif
70 {NET_CORE_MSG_COST, "message_cost",
71 &net_msg_cost, sizeof(int), 0644, NULL,
72 &proc_dointvec_jiffies},
73 {NET_CORE_MSG_BURST, "message_burst",
74 &net_msg_burst, sizeof(int), 0644, NULL,
75 &proc_dointvec_jiffies},
76 {NET_CORE_OPTMEM_MAX, "optmem_max",
77 &sysctl_optmem_max, sizeof(int), 0644, NULL,
78 &proc_dointvec},
79 {NET_CORE_HOT_LIST_LENGTH, "hot_list_length",
80 &sysctl_hot_list_len, sizeof(int), 0644, NULL,
81 &proc_dointvec},
82 #ifdef CONFIG_NET_DIVERT
83 {NET_CORE_DIVERT_VERSION, "divert_version",
84 (void *)sysctl_divert_version, 32, 0444, NULL,
85 &proc_dostring},
86 #endif /* CONFIG_NET_DIVERT */
87 #endif /* CONFIG_NET */
88 { 0 }
89 };
90 #endif
91
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.