|
28 | 28 | #include <net/protocol.h> |
29 | 29 | #include <net/netevent.h> |
30 | 30 |
|
31 | | -static int two = 2; |
32 | | -static int four = 4; |
33 | | -static int thousand = 1000; |
34 | | -static int gso_max_segs = GSO_MAX_SEGS; |
35 | | -static int tcp_retr1_max = 255; |
36 | | -static int ip_local_port_range_min[] = { 1, 1 }; |
37 | | -static int ip_local_port_range_max[] = { 65535, 65535 }; |
38 | | -static int tcp_adv_win_scale_min = -31; |
39 | | -static int tcp_adv_win_scale_max = 31; |
40 | | -static int tcp_min_snd_mss_min = TCP_MIN_SND_MSS; |
41 | | -static int tcp_min_snd_mss_max = 65535; |
42 | | -static int ip_privileged_port_min; |
43 | | -static int ip_privileged_port_max = 65535; |
44 | | -static int ip_ttl_min = 1; |
45 | | -static int ip_ttl_max = 255; |
46 | | -static int tcp_syn_retries_min = 1; |
47 | | -static int tcp_syn_retries_max = MAX_TCP_SYNCNT; |
48 | | -static int ip_ping_group_range_min[] = { 0, 0 }; |
49 | | -static int ip_ping_group_range_max[] = { GID_T_MAX, GID_T_MAX }; |
50 | | -static int comp_sack_nr_max = 255; |
51 | | -static u32 u32_max_div_HZ = UINT_MAX / HZ; |
52 | | -static int one_day_secs = 24 * 3600; |
| 31 | +static int two __read_only = 2; |
| 32 | +static int four __read_only = 4; |
| 33 | +static int thousand __read_only = 1000; |
| 34 | +static int gso_max_segs __read_only = GSO_MAX_SEGS; |
| 35 | +static int tcp_retr1_max __read_only = 255; |
| 36 | +static int ip_local_port_range_min[] __read_only = { 1, 1 }; |
| 37 | +static int ip_local_port_range_max[] __read_only = { 65535, 65535 }; |
| 38 | +static int tcp_adv_win_scale_min __read_only = -31; |
| 39 | +static int tcp_adv_win_scale_max __read_only = 31; |
| 40 | +static int tcp_min_snd_mss_min __read_only = TCP_MIN_SND_MSS; |
| 41 | +static int tcp_min_snd_mss_max __read_only = 65535; |
| 42 | +static int ip_privileged_port_min __read_only; |
| 43 | +static int ip_privileged_port_max __read_only = 65535; |
| 44 | +static int ip_ttl_min __read_only = 1; |
| 45 | +static int ip_ttl_max __read_only = 255; |
| 46 | +static int tcp_syn_retries_min __read_only = 1; |
| 47 | +static int tcp_syn_retries_max __read_only = MAX_TCP_SYNCNT; |
| 48 | +static int ip_ping_group_range_min[] __read_only = { 0, 0 }; |
| 49 | +static int ip_ping_group_range_max[] __read_only = { GID_T_MAX, GID_T_MAX }; |
| 50 | +static int comp_sack_nr_max __read_only = 255; |
| 51 | +static u32 u32_max_div_HZ __read_only = UINT_MAX / HZ; |
| 52 | +static int one_day_secs __read_only = 24 * 3600; |
53 | 53 |
|
54 | 54 | /* obsolete */ |
55 | 55 | static int sysctl_tcp_low_latency __read_mostly; |
|
0 commit comments