diff options
| -rw-r--r-- | net/ipv4/fib_hash.c | 2 | ||||
| -rw-r--r-- | net/ipv4/fib_semantics.c | 2 | ||||
| -rw-r--r-- | net/ipv4/icmp.c | 4 | ||||
| -rw-r--r-- | net/ipv4/ipvs/ip_vs_conn.c | 2 | ||||
| -rw-r--r-- | net/ipv4/ipvs/ip_vs_ctl.c | 4 | ||||
| -rw-r--r-- | net/ipv4/ipvs/ip_vs_proto_tcp.c | 2 | ||||
| -rw-r--r-- | net/ipv4/netfilter/ip_conntrack_amanda.c | 2 | ||||
| -rw-r--r-- | net/ipv4/netfilter/ip_conntrack_ftp.c | 2 | ||||
| -rw-r--r-- | net/ipv4/netfilter/ip_conntrack_irc.c | 2 | ||||
| -rw-r--r-- | net/ipv4/netfilter/ip_conntrack_proto_icmp.c | 4 | ||||
| -rw-r--r-- | net/ipv4/netfilter/ip_conntrack_proto_sctp.c | 4 | ||||
| -rw-r--r-- | net/ipv4/netfilter/ip_conntrack_proto_tcp.c | 6 | ||||
| -rw-r--r-- | net/ipv4/netfilter/ip_tables.c | 2 | ||||
| -rw-r--r-- | net/ipv4/netfilter/ipt_LOG.c | 2 | ||||
| -rw-r--r-- | net/ipv4/proc.c | 10 | ||||
| -rw-r--r-- | net/ipv4/route.c | 2 | ||||
| -rw-r--r-- | net/ipv4/tcp.c | 2 | ||||
| -rw-r--r-- | net/ipv6/icmp.c | 2 | ||||
| -rw-r--r-- | net/ipv6/netfilter/ip6_tables.c | 2 |
19 files changed, 29 insertions, 29 deletions
diff --git a/net/ipv4/fib_hash.c b/net/ipv4/fib_hash.c index 2a8c9afc3695..7ea0209cb169 100644 --- a/net/ipv4/fib_hash.c +++ b/net/ipv4/fib_hash.c | |||
| @@ -975,7 +975,7 @@ static void fib_seq_stop(struct seq_file *seq, void *v) | |||
| 975 | 975 | ||
| 976 | static unsigned fib_flag_trans(int type, u32 mask, struct fib_info *fi) | 976 | static unsigned fib_flag_trans(int type, u32 mask, struct fib_info *fi) |
| 977 | { | 977 | { |
| 978 | static unsigned type2flags[RTN_MAX + 1] = { | 978 | static const unsigned type2flags[RTN_MAX + 1] = { |
| 979 | [7] = RTF_REJECT, [8] = RTF_REJECT, | 979 | [7] = RTF_REJECT, [8] = RTF_REJECT, |
| 980 | }; | 980 | }; |
| 981 | unsigned flags = type2flags[type]; | 981 | unsigned flags = type2flags[type]; |
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c index 186f20c4a45e..6d2a6ac070e3 100644 --- a/net/ipv4/fib_semantics.c +++ b/net/ipv4/fib_semantics.c | |||
| @@ -83,7 +83,7 @@ for (nhsel=0; nhsel < 1; nhsel++) | |||
| 83 | #define endfor_nexthops(fi) } | 83 | #define endfor_nexthops(fi) } |
| 84 | 84 | ||
| 85 | 85 | ||
| 86 | static struct | 86 | static const struct |
| 87 | { | 87 | { |
| 88 | int error; | 88 | int error; |
| 89 | u8 scope; | 89 | u8 scope; |
diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c index e3eceecd0496..92e23b2ad4d2 100644 --- a/net/ipv4/icmp.c +++ b/net/ipv4/icmp.c | |||
| @@ -220,7 +220,7 @@ struct icmp_control { | |||
| 220 | short error; /* This ICMP is classed as an error message */ | 220 | short error; /* This ICMP is classed as an error message */ |
| 221 | }; | 221 | }; |
| 222 | 222 | ||
| 223 | static struct icmp_control icmp_pointers[NR_ICMP_TYPES+1]; | 223 | static const struct icmp_control icmp_pointers[NR_ICMP_TYPES+1]; |
| 224 | 224 | ||
| 225 | /* | 225 | /* |
| 226 | * The ICMP socket(s). This is the most convenient way to flow control | 226 | * The ICMP socket(s). This is the most convenient way to flow control |
| @@ -994,7 +994,7 @@ error: | |||
| 994 | /* | 994 | /* |
| 995 | * This table is the definition of how we handle ICMP. | 995 | * This table is the definition of how we handle ICMP. |
| 996 | */ | 996 | */ |
| 997 | static struct icmp_control icmp_pointers[NR_ICMP_TYPES + 1] = { | 997 | static const struct icmp_control icmp_pointers[NR_ICMP_TYPES + 1] = { |
| 998 | [ICMP_ECHOREPLY] = { | 998 | [ICMP_ECHOREPLY] = { |
| 999 | .output_entry = ICMP_MIB_OUTECHOREPS, | 999 | .output_entry = ICMP_MIB_OUTECHOREPS, |
| 1000 | .input_entry = ICMP_MIB_INECHOREPS, | 1000 | .input_entry = ICMP_MIB_INECHOREPS, |
diff --git a/net/ipv4/ipvs/ip_vs_conn.c b/net/ipv4/ipvs/ip_vs_conn.c index f828fa2eb7de..2a3a8c59c655 100644 --- a/net/ipv4/ipvs/ip_vs_conn.c +++ b/net/ipv4/ipvs/ip_vs_conn.c | |||
| @@ -771,7 +771,7 @@ static inline int todrop_entry(struct ip_vs_conn *cp) | |||
| 771 | * The drop rate array needs tuning for real environments. | 771 | * The drop rate array needs tuning for real environments. |
| 772 | * Called from timer bh only => no locking | 772 | * Called from timer bh only => no locking |
| 773 | */ | 773 | */ |
| 774 | static char todrop_rate[9] = {0, 1, 2, 3, 4, 5, 6, 7, 8}; | 774 | static const char todrop_rate[9] = {0, 1, 2, 3, 4, 5, 6, 7, 8}; |
| 775 | static char todrop_counter[9] = {0}; | 775 | static char todrop_counter[9] = {0}; |
| 776 | int i; | 776 | int i; |
| 777 | 777 | ||
diff --git a/net/ipv4/ipvs/ip_vs_ctl.c b/net/ipv4/ipvs/ip_vs_ctl.c index 2d66848e7aa0..9bdcf31b760e 100644 --- a/net/ipv4/ipvs/ip_vs_ctl.c +++ b/net/ipv4/ipvs/ip_vs_ctl.c | |||
| @@ -1909,7 +1909,7 @@ static int ip_vs_set_timeout(struct ip_vs_timeout_user *u) | |||
| 1909 | #define DAEMON_ARG_LEN (sizeof(struct ip_vs_daemon_user)) | 1909 | #define DAEMON_ARG_LEN (sizeof(struct ip_vs_daemon_user)) |
| 1910 | #define MAX_ARG_LEN SVCDEST_ARG_LEN | 1910 | #define MAX_ARG_LEN SVCDEST_ARG_LEN |
| 1911 | 1911 | ||
| 1912 | static unsigned char set_arglen[SET_CMDID(IP_VS_SO_SET_MAX)+1] = { | 1912 | static const unsigned char set_arglen[SET_CMDID(IP_VS_SO_SET_MAX)+1] = { |
| 1913 | [SET_CMDID(IP_VS_SO_SET_ADD)] = SERVICE_ARG_LEN, | 1913 | [SET_CMDID(IP_VS_SO_SET_ADD)] = SERVICE_ARG_LEN, |
| 1914 | [SET_CMDID(IP_VS_SO_SET_EDIT)] = SERVICE_ARG_LEN, | 1914 | [SET_CMDID(IP_VS_SO_SET_EDIT)] = SERVICE_ARG_LEN, |
| 1915 | [SET_CMDID(IP_VS_SO_SET_DEL)] = SERVICE_ARG_LEN, | 1915 | [SET_CMDID(IP_VS_SO_SET_DEL)] = SERVICE_ARG_LEN, |
| @@ -2180,7 +2180,7 @@ __ip_vs_get_timeouts(struct ip_vs_timeout_user *u) | |||
| 2180 | #define GET_TIMEOUT_ARG_LEN (sizeof(struct ip_vs_timeout_user)) | 2180 | #define GET_TIMEOUT_ARG_LEN (sizeof(struct ip_vs_timeout_user)) |
| 2181 | #define GET_DAEMON_ARG_LEN (sizeof(struct ip_vs_daemon_user) * 2) | 2181 | #define GET_DAEMON_ARG_LEN (sizeof(struct ip_vs_daemon_user) * 2) |
| 2182 | 2182 | ||
| 2183 | static unsigned char get_arglen[GET_CMDID(IP_VS_SO_GET_MAX)+1] = { | 2183 | static const unsigned char get_arglen[GET_CMDID(IP_VS_SO_GET_MAX)+1] = { |
| 2184 | [GET_CMDID(IP_VS_SO_GET_VERSION)] = 64, | 2184 | [GET_CMDID(IP_VS_SO_GET_VERSION)] = 64, |
| 2185 | [GET_CMDID(IP_VS_SO_GET_INFO)] = GET_INFO_ARG_LEN, | 2185 | [GET_CMDID(IP_VS_SO_GET_INFO)] = GET_INFO_ARG_LEN, |
| 2186 | [GET_CMDID(IP_VS_SO_GET_SERVICES)] = GET_SERVICES_ARG_LEN, | 2186 | [GET_CMDID(IP_VS_SO_GET_SERVICES)] = GET_SERVICES_ARG_LEN, |
diff --git a/net/ipv4/ipvs/ip_vs_proto_tcp.c b/net/ipv4/ipvs/ip_vs_proto_tcp.c index c19408973c09..0e878fd6215c 100644 --- a/net/ipv4/ipvs/ip_vs_proto_tcp.c +++ b/net/ipv4/ipvs/ip_vs_proto_tcp.c | |||
| @@ -251,7 +251,7 @@ tcp_csum_check(struct sk_buff *skb, struct ip_vs_protocol *pp) | |||
| 251 | #define TCP_DIR_OUTPUT 4 | 251 | #define TCP_DIR_OUTPUT 4 |
| 252 | #define TCP_DIR_INPUT_ONLY 8 | 252 | #define TCP_DIR_INPUT_ONLY 8 |
| 253 | 253 | ||
| 254 | static int tcp_state_off[IP_VS_DIR_LAST] = { | 254 | static const int tcp_state_off[IP_VS_DIR_LAST] = { |
| 255 | [IP_VS_DIR_INPUT] = TCP_DIR_INPUT, | 255 | [IP_VS_DIR_INPUT] = TCP_DIR_INPUT, |
| 256 | [IP_VS_DIR_OUTPUT] = TCP_DIR_OUTPUT, | 256 | [IP_VS_DIR_OUTPUT] = TCP_DIR_OUTPUT, |
| 257 | [IP_VS_DIR_INPUT_ONLY] = TCP_DIR_INPUT_ONLY, | 257 | [IP_VS_DIR_INPUT_ONLY] = TCP_DIR_INPUT_ONLY, |
diff --git a/net/ipv4/netfilter/ip_conntrack_amanda.c b/net/ipv4/netfilter/ip_conntrack_amanda.c index fa3f914117ec..e52847fa10f5 100644 --- a/net/ipv4/netfilter/ip_conntrack_amanda.c +++ b/net/ipv4/netfilter/ip_conntrack_amanda.c | |||
| @@ -37,7 +37,7 @@ MODULE_LICENSE("GPL"); | |||
| 37 | module_param(master_timeout, int, 0600); | 37 | module_param(master_timeout, int, 0600); |
| 38 | MODULE_PARM_DESC(master_timeout, "timeout for the master connection"); | 38 | MODULE_PARM_DESC(master_timeout, "timeout for the master connection"); |
| 39 | 39 | ||
| 40 | static char *conns[] = { "DATA ", "MESG ", "INDEX " }; | 40 | static const char *conns[] = { "DATA ", "MESG ", "INDEX " }; |
| 41 | 41 | ||
| 42 | /* This is slow, but it's simple. --RR */ | 42 | /* This is slow, but it's simple. --RR */ |
| 43 | static char *amanda_buffer; | 43 | static char *amanda_buffer; |
diff --git a/net/ipv4/netfilter/ip_conntrack_ftp.c b/net/ipv4/netfilter/ip_conntrack_ftp.c index 59e12b02b22c..68b173bcda60 100644 --- a/net/ipv4/netfilter/ip_conntrack_ftp.c +++ b/net/ipv4/netfilter/ip_conntrack_ftp.c | |||
| @@ -55,7 +55,7 @@ static int try_rfc959(const char *, size_t, u_int32_t [], char); | |||
| 55 | static int try_eprt(const char *, size_t, u_int32_t [], char); | 55 | static int try_eprt(const char *, size_t, u_int32_t [], char); |
| 56 | static int try_epsv_response(const char *, size_t, u_int32_t [], char); | 56 | static int try_epsv_response(const char *, size_t, u_int32_t [], char); |
| 57 | 57 | ||
| 58 | static struct ftp_search { | 58 | static const struct ftp_search { |
| 59 | enum ip_conntrack_dir dir; | 59 | enum ip_conntrack_dir dir; |
| 60 | const char *pattern; | 60 | const char *pattern; |
| 61 | size_t plen; | 61 | size_t plen; |
diff --git a/net/ipv4/netfilter/ip_conntrack_irc.c b/net/ipv4/netfilter/ip_conntrack_irc.c index 2dea1db14406..d7c40421d0d1 100644 --- a/net/ipv4/netfilter/ip_conntrack_irc.c +++ b/net/ipv4/netfilter/ip_conntrack_irc.c | |||
| @@ -59,7 +59,7 @@ MODULE_PARM_DESC(max_dcc_channels, "max number of expected DCC channels per IRC | |||
| 59 | module_param(dcc_timeout, int, 0400); | 59 | module_param(dcc_timeout, int, 0400); |
| 60 | MODULE_PARM_DESC(dcc_timeout, "timeout on for unestablished DCC channels"); | 60 | MODULE_PARM_DESC(dcc_timeout, "timeout on for unestablished DCC channels"); |
| 61 | 61 | ||
| 62 | static char *dccprotos[] = { "SEND ", "CHAT ", "MOVE ", "TSEND ", "SCHAT " }; | 62 | static const char *dccprotos[] = { "SEND ", "CHAT ", "MOVE ", "TSEND ", "SCHAT " }; |
| 63 | #define MINMATCHLEN 5 | 63 | #define MINMATCHLEN 5 |
| 64 | 64 | ||
| 65 | #if 0 | 65 | #if 0 |
diff --git a/net/ipv4/netfilter/ip_conntrack_proto_icmp.c b/net/ipv4/netfilter/ip_conntrack_proto_icmp.c index e4d6b268e8c4..5f9925db608e 100644 --- a/net/ipv4/netfilter/ip_conntrack_proto_icmp.c +++ b/net/ipv4/netfilter/ip_conntrack_proto_icmp.c | |||
| @@ -51,7 +51,7 @@ static int icmp_invert_tuple(struct ip_conntrack_tuple *tuple, | |||
| 51 | const struct ip_conntrack_tuple *orig) | 51 | const struct ip_conntrack_tuple *orig) |
| 52 | { | 52 | { |
| 53 | /* Add 1; spaces filled with 0. */ | 53 | /* Add 1; spaces filled with 0. */ |
| 54 | static u_int8_t invmap[] | 54 | static const u_int8_t invmap[] |
| 55 | = { [ICMP_ECHO] = ICMP_ECHOREPLY + 1, | 55 | = { [ICMP_ECHO] = ICMP_ECHOREPLY + 1, |
| 56 | [ICMP_ECHOREPLY] = ICMP_ECHO + 1, | 56 | [ICMP_ECHOREPLY] = ICMP_ECHO + 1, |
| 57 | [ICMP_TIMESTAMP] = ICMP_TIMESTAMPREPLY + 1, | 57 | [ICMP_TIMESTAMP] = ICMP_TIMESTAMPREPLY + 1, |
| @@ -110,7 +110,7 @@ static int icmp_packet(struct ip_conntrack *ct, | |||
| 110 | return NF_ACCEPT; | 110 | return NF_ACCEPT; |
| 111 | } | 111 | } |
| 112 | 112 | ||
| 113 | static u_int8_t valid_new[] = { | 113 | static const u_int8_t valid_new[] = { |
| 114 | [ICMP_ECHO] = 1, | 114 | [ICMP_ECHO] = 1, |
| 11 | |||
