"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "net/netfilter/nft_lookup.c" between
linux-4.14.148.tar.xz and linux-4.14.149.tar.xz

About: The full source of the Linux kernel 4.14.x (longterm stable)

nft_lookup.c  (linux-4.14.148.tar.xz):nft_lookup.c  (linux-4.14.149.tar.xz)
skipping to change at line 79 skipping to change at line 79
if (tb[NFTA_LOOKUP_SET] == NULL || if (tb[NFTA_LOOKUP_SET] == NULL ||
tb[NFTA_LOOKUP_SREG] == NULL) tb[NFTA_LOOKUP_SREG] == NULL)
return -EINVAL; return -EINVAL;
set = nft_set_lookup(ctx->net, ctx->table, tb[NFTA_LOOKUP_SET], set = nft_set_lookup(ctx->net, ctx->table, tb[NFTA_LOOKUP_SET],
tb[NFTA_LOOKUP_SET_ID], genmask); tb[NFTA_LOOKUP_SET_ID], genmask);
if (IS_ERR(set)) if (IS_ERR(set))
return PTR_ERR(set); return PTR_ERR(set);
if (set->flags & NFT_SET_EVAL)
return -EOPNOTSUPP;
priv->sreg = nft_parse_register(tb[NFTA_LOOKUP_SREG]); priv->sreg = nft_parse_register(tb[NFTA_LOOKUP_SREG]);
err = nft_validate_register_load(priv->sreg, set->klen); err = nft_validate_register_load(priv->sreg, set->klen);
if (err < 0) if (err < 0)
return err; return err;
if (tb[NFTA_LOOKUP_FLAGS]) { if (tb[NFTA_LOOKUP_FLAGS]) {
flags = ntohl(nla_get_be32(tb[NFTA_LOOKUP_FLAGS])); flags = ntohl(nla_get_be32(tb[NFTA_LOOKUP_FLAGS]));
if (flags & ~NFT_LOOKUP_F_INV) if (flags & ~NFT_LOOKUP_F_INV)
return -EINVAL; return -EINVAL;
 End of changes. 1 change blocks. 
3 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)