On Tue, Jan 17, 2017 at 10:51:26PM +0100, Phil Sutter wrote: > If NFT_EXTHDR_F_PRESENT is set, exthdr will not copy any header field > data into *dest, but instead set it to 1 if the header is found and 0 > otherwise. Applied this one, thanks Phil. I have fixed this here, via sparse (make C=2): net/netfilter/nft_exthdr.c:90:24: warning: cast to restricted __be32 > @@ -80,6 +87,7 @@ static int nft_exthdr_init(const struct nft_ctx *ctx, > priv->offset = offset; > priv->len = len; > priv->dreg = nft_parse_register(tb[NFTA_EXTHDR_DREG]); > + priv->flags = ntohl(nla_get_u32(tb[NFTA_EXTHDR_FLAGS])); This needed to be nla_get_be32(). No problem, I fixed this here. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html