Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1c7e4772 authored by Jorge Matias's avatar Jorge Matias Committed by David S. Miller
Browse files

[NETFILTER]: xt_sctp: fix --chunk-types matching



xt_sctp uses an incorrect header offset when --chunk-types is used.

Signed-off-by: default avatarJorge Matias <jorge.matias@motorola.com>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9abdcf6b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -151,7 +151,7 @@ match(const struct sk_buff *skb,
		&& SCCHECK(((ntohs(sh->dest) >= info->dpts[0]) 
			&& (ntohs(sh->dest) <= info->dpts[1])), 
			XT_SCTP_DEST_PORTS, info->flags, info->invflags)
		&& SCCHECK(match_packet(skb, protoff,
		&& SCCHECK(match_packet(skb, protoff + sizeof (sctp_sctphdr_t),
					info->chunkmap, info->chunk_match_type,
 					info->flag_info, info->flag_count, 
					hotdrop),