mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 04:21:03 -04:00
netfilter: nf_tables: deconstify walk callback function
The flush operation needs to modify set and element objects, so let's deconstify this. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
@@ -207,9 +207,9 @@ struct nft_set_iter {
|
||||
unsigned int skip;
|
||||
int err;
|
||||
int (*fn)(const struct nft_ctx *ctx,
|
||||
const struct nft_set *set,
|
||||
struct nft_set *set,
|
||||
const struct nft_set_iter *iter,
|
||||
const struct nft_set_elem *elem);
|
||||
struct nft_set_elem *elem);
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -301,7 +301,7 @@ struct nft_set_ops {
|
||||
void (*remove)(const struct nft_set *set,
|
||||
const struct nft_set_elem *elem);
|
||||
void (*walk)(const struct nft_ctx *ctx,
|
||||
const struct nft_set *set,
|
||||
struct nft_set *set,
|
||||
struct nft_set_iter *iter);
|
||||
|
||||
unsigned int (*privsize)(const struct nlattr * const nla[]);
|
||||
|
||||
Reference in New Issue
Block a user