]> err.no Git - linux-2.6/commitdiff
[NETFILTER]: nf_conntrack_{tcp,sctp}: mark state table const
authorPatrick McHardy <kaber@trash.net>
Tue, 15 Jan 2008 07:44:49 +0000 (23:44 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:02:31 +0000 (15:02 -0800)
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_conntrack_proto_sctp.c
net/netfilter/nf_conntrack_proto_tcp.c

index 9296fd28189960d78860525e4ea8d6069e8cce31..47c1dbead84bbf376470ca8c2487dac3891932e9 100644 (file)
@@ -110,7 +110,7 @@ cookie echoed to closed.
 */
 
 /* SCTP conntrack state transitions */
-static enum sctp_conntrack sctp_conntracks[2][9][SCTP_CONNTRACK_MAX] = {
+static const enum sctp_conntrack sctp_conntracks[2][9][SCTP_CONNTRACK_MAX] = {
        {
 /*     ORIGINAL        */
 /*                  sNO, sCL, sCW, sCE, sES, sSS, sSR, sSA */
index 1d496b912bd001501c1f4b679c9e304ff6dcad08..be19bd94ddf9c1089d048dc5e23119ad3b512c35 100644 (file)
@@ -149,7 +149,7 @@ enum tcp_bit_set {
  *     if they are invalid
  *     or we do not support the request (simultaneous open)
  */
-static enum tcp_conntrack tcp_conntracks[2][6][TCP_CONNTRACK_MAX] = {
+static const enum tcp_conntrack tcp_conntracks[2][6][TCP_CONNTRACK_MAX] = {
        {
 /* ORIGINAL */
 /*          sNO, sSS, sSR, sES, sFW, sCW, sLA, sTW, sCL, sLI   */