aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/sysctl.c
diff options
context:
space:
mode:
authorGerrit Renker <gerrit@erg.abdn.ac.uk>2006-11-13 10:25:41 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 00:22:19 -0500
commitafb0a34dd3e20b3f534de19993271b8664cf10bb (patch)
treef7660923d8dfa7e75ea655b99a6b608d67dea327 /net/dccp/sysctl.c
parent2e2e9e92bd723244ea20fa488b1780111f2b05e1 (diff)
[DCCP]: Introduce a consistent naming scheme for sysctls
In order to make their function clearer and obtain a consistent naming scheme to identify sysctls, all existing DCCP sysctls have been prefixed with `sysctl_dccp', following the same convention as used by TCP. Feature-specific sysctls retain the `feat' in the middle, although the `default' has been dropped, since it is obvious from use. Also removed a duplicate `dccp_feat_default_sequence_window' in ipv4.c. Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk> Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net/dccp/sysctl.c')
-rw-r--r--net/dccp/sysctl.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/net/dccp/sysctl.c b/net/dccp/sysctl.c
index 7b09f2179985..8b62061e5701 100644
--- a/net/dccp/sysctl.c
+++ b/net/dccp/sysctl.c
@@ -22,48 +22,48 @@ static struct ctl_table dccp_default_table[] = {
22 { 22 {
23 .ctl_name = NET_DCCP_DEFAULT_SEQ_WINDOW, 23 .ctl_name = NET_DCCP_DEFAULT_SEQ_WINDOW,
24 .procname = "seq_window", 24 .procname = "seq_window",
25 .data = &dccp_feat_default_sequence_window, 25 .data = &sysctl_dccp_feat_sequence_window,
26 .maxlen = sizeof(dccp_feat_default_sequence_window), 26 .maxlen = sizeof(sysctl_dccp_feat_sequence_window),
27 .mode = 0644, 27 .mode = 0644,
28 .proc_handler = proc_dointvec, 28 .proc_handler = proc_dointvec,
29 }, 29 },
30 { 30 {
31 .ctl_name = NET_DCCP_DEFAULT_RX_CCID, 31 .ctl_name = NET_DCCP_DEFAULT_RX_CCID,
32 .procname = "rx_ccid", 32 .procname = "rx_ccid",
33 .data = &dccp_feat_default_rx_ccid, 33 .data = &sysctl_dccp_feat_rx_ccid,
34 .maxlen = sizeof(dccp_feat_default_rx_ccid), 34 .maxlen = sizeof(sysctl_dccp_feat_rx_ccid),
35 .mode = 0644, 35 .mode = 0644,
36 .proc_handler = proc_dointvec, 36 .proc_handler = proc_dointvec,
37 }, 37 },
38 { 38 {
39 .ctl_name = NET_DCCP_DEFAULT_TX_CCID, 39 .ctl_name = NET_DCCP_DEFAULT_TX_CCID,
40 .procname = "tx_ccid", 40 .procname = "tx_ccid",
41 .data = &dccp_feat_default_tx_ccid, 41 .data = &sysctl_dccp_feat_tx_ccid,
42 .maxlen = sizeof(dccp_feat_default_tx_ccid), 42 .maxlen = sizeof(sysctl_dccp_feat_tx_ccid),
43 .mode = 0644, 43 .mode = 0644,
44 .proc_handler = proc_dointvec, 44 .proc_handler = proc_dointvec,
45 }, 45 },
46 { 46 {
47 .ctl_name = NET_DCCP_DEFAULT_ACK_RATIO, 47 .ctl_name = NET_DCCP_DEFAULT_ACK_RATIO,
48 .procname = "ack_ratio", 48 .procname = "ack_ratio",
49 .data = &dccp_feat_default_ack_ratio, 49 .data = &sysctl_dccp_feat_ack_ratio,
50 .maxlen = sizeof(dccp_feat_default_ack_ratio), 50 .maxlen = sizeof(sysctl_dccp_feat_ack_ratio),
51 .mode = 0644, 51 .mode = 0644,
52 .proc_handler = proc_dointvec, 52 .proc_handler = proc_dointvec,
53 }, 53 },
54 { 54 {
55 .ctl_name = NET_DCCP_DEFAULT_SEND_ACKVEC, 55 .ctl_name = NET_DCCP_DEFAULT_SEND_ACKVEC,
56 .procname = "send_ackvec", 56 .procname = "send_ackvec",
57 .data = &dccp_feat_default_send_ack_vector, 57 .data = &sysctl_dccp_feat_send_ack_vector,
58 .maxlen = sizeof(dccp_feat_default_send_ack_vector), 58 .maxlen = sizeof(sysctl_dccp_feat_send_ack_vector),
59 .mode = 0644, 59 .mode = 0644,
60 .proc_handler = proc_dointvec, 60 .proc_handler = proc_dointvec,
61 }, 61 },
62 { 62 {
63 .ctl_name = NET_DCCP_DEFAULT_SEND_NDP, 63 .ctl_name = NET_DCCP_DEFAULT_SEND_NDP,
64 .procname = "send_ndp", 64 .procname = "send_ndp",
65 .data = &dccp_feat_default_send_ndp_count, 65 .data = &sysctl_dccp_feat_send_ndp_count,
66 .maxlen = sizeof(dccp_feat_default_send_ndp_count), 66 .maxlen = sizeof(sysctl_dccp_feat_send_ndp_count),
67 .mode = 0644, 67 .mode = 0644,
68 .proc_handler = proc_dointvec, 68 .proc_handler = proc_dointvec,
69 }, 69 },