aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-01-15 02:44:49 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:02:31 -0500
commit77e2420b85573f57c2774775ead81ebb500b803d (patch)
treece687acbbe0209f50ef1a9201e786b85971dbe57 /net
parent9ba99b0d3f45d0aedeafce1cfa4f720b19d04477 (diff)
[NETFILTER]: nf_conntrack_{tcp,sctp}: mark state table const
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/nf_conntrack_proto_sctp.c2
-rw-r--r--net/netfilter/nf_conntrack_proto_tcp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/nf_conntrack_proto_sctp.c b/net/netfilter/nf_conntrack_proto_sctp.c
index 9296fd281899..47c1dbead84b 100644
--- a/net/netfilter/nf_conntrack_proto_sctp.c
+++ b/net/netfilter/nf_conntrack_proto_sctp.c
@@ -110,7 +110,7 @@ cookie echoed to closed.
110*/ 110*/
111 111
112/* SCTP conntrack state transitions */ 112/* SCTP conntrack state transitions */
113static enum sctp_conntrack sctp_conntracks[2][9][SCTP_CONNTRACK_MAX] = { 113static const enum sctp_conntrack sctp_conntracks[2][9][SCTP_CONNTRACK_MAX] = {
114 { 114 {
115/* ORIGINAL */ 115/* ORIGINAL */
116/* sNO, sCL, sCW, sCE, sES, sSS, sSR, sSA */ 116/* sNO, sCL, sCW, sCE, sES, sSS, sSR, sSA */
diff --git a/net/netfilter/nf_conntrack_proto_tcp.c b/net/netfilter/nf_conntrack_proto_tcp.c
index 1d496b912bd0..be19bd94ddf9 100644
--- a/net/netfilter/nf_conntrack_proto_tcp.c
+++ b/net/netfilter/nf_conntrack_proto_tcp.c
@@ -149,7 +149,7 @@ enum tcp_bit_set {
149 * if they are invalid 149 * if they are invalid
150 * or we do not support the request (simultaneous open) 150 * or we do not support the request (simultaneous open)
151 */ 151 */
152static enum tcp_conntrack tcp_conntracks[2][6][TCP_CONNTRACK_MAX] = { 152static const enum tcp_conntrack tcp_conntracks[2][6][TCP_CONNTRACK_MAX] = {
153 { 153 {
154/* ORIGINAL */ 154/* ORIGINAL */
155/* sNO, sSS, sSR, sES, sFW, sCW, sLA, sTW, sCL, sLI */ 155/* sNO, sSS, sSR, sES, sFW, sCW, sLA, sTW, sCL, sLI */