From: Patrick McHardy Date: Tue, 15 Jan 2008 07:48:02 +0000 (-0800) Subject: [NETFILTER]: nf_conntrack_sctp: replace magic value by symbolic constant X-Git-Tag: v2.6.25-rc1~1162^2~709 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b1c2cfd7a8b3840cf5c99d0560e641ff4a3425b;p=linux-2.6 [NETFILTER]: nf_conntrack_sctp: replace magic value by symbolic constant Use SCTP_CHUNK_FLAG_T instead of 0x1. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- diff --git a/net/netfilter/nf_conntrack_proto_sctp.c b/net/netfilter/nf_conntrack_proto_sctp.c index 177e8f60aa..14b1c02c47 100644 --- a/net/netfilter/nf_conntrack_proto_sctp.c +++ b/net/netfilter/nf_conntrack_proto_sctp.c @@ -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) */