[NETFILTER]: nf_conntrack_sctp: replace magic value by symbolic constant
authorPatrick McHardy <kaber@trash.net>
Tue, 15 Jan 2008 07:48:02 +0000 (23:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:02:39 +0000 (15:02 -0800)
Use SCTP_CHUNK_FLAG_T instead of 0x1.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_conntrack_proto_sctp.c

index 177e8f60aa1ca748cffe5310dd1edd53170a5812..14b1c02c47753ec4d7ff2f76b16832d24a01a010 100644 (file)
@@ -341,7 +341,7 @@ static int sctp_packet(struct nf_conn *ct,
                        /* Sec 8.5.1 (C) */
                        if (sh->vtag != ct->proto.sctp.vtag[dir] &&
                            sh->vtag != ct->proto.sctp.vtag[!dir] &&
-                           (sch->flags & 1))
+                           sch->flags & SCTP_CHUNK_FLAG_T)
                                goto out_unlock;
                } else if (sch->type == SCTP_CID_COOKIE_ECHO) {
                        /* Sec 8.5.1 (D) */