History

netfilter: nf_tables: release new hooks on unsupported flowtable flags

Release the list of new hooks that are pending to be registered in case that unsupported flowtable flags are provided.

Pablo Neira Ayuso committed 4 years ago

Commit c271cc91 parent 2c9e4551 file · +8 −4Browse files

Unified · Split

net/netfilter/nf_tables_api.c+8−4
@@ -7433,11 +7433,15 @@ static int nft_flowtable_update(struct nft_ctx *ctx, const struct nlmsghdr *nlh, · 7432 unmodified lines
74337433
74347434 if (nla[NFTA_FLOWTABLE_FLAGS]) {
74357435 flags = ntohl(nla_get_be32(nla[NFTA_FLOWTABLE_FLAGS]));
7436− if (flags & ~NFT_FLOWTABLE_MASK)
7437− return -EOPNOTSUPP;
7436+ if (flags & ~NFT_FLOWTABLE_MASK) {
7437+ err = -EOPNOTSUPP;
7438+ goto err_flowtable_update_hook;
7439+ }
74387440 if ((flowtable->data.flags & NFT_FLOWTABLE_HW_OFFLOAD) ^
7439− (flags & NFT_FLOWTABLE_HW_OFFLOAD))
7440− return -EOPNOTSUPP;
7441+ (flags & NFT_FLOWTABLE_HW_OFFLOAD)) {
7442+ err = -EOPNOTSUPP;
7443+ goto err_flowtable_update_hook;
7444+ }
74417445 } else {
74427446 flags = flowtable->data.flags;
74437447 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t