diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/chain.c | 2 | ||||
-rw-r--r-- | src/rule.c | 2 | ||||
-rw-r--r-- | src/set.c | 2 | ||||
-rw-r--r-- | src/set_elem.c | 2 | ||||
-rw-r--r-- | src/table.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/src/chain.c b/src/chain.c index 0c7f422..3fb1d03 100644 --- a/src/chain.c +++ b/src/chain.c @@ -69,7 +69,7 @@ void nft_chain_free(struct nft_chain *c) } EXPORT_SYMBOL(nft_chain_free); -bool nft_chain_attr_is_set(struct nft_chain *c, uint16_t attr) +bool nft_chain_attr_is_set(const struct nft_chain *c, uint16_t attr) { return c->flags & (1 << attr); } @@ -73,7 +73,7 @@ void nft_rule_free(struct nft_rule *r) } EXPORT_SYMBOL(nft_rule_free); -bool nft_rule_attr_is_set(struct nft_rule *r, uint16_t attr) +bool nft_rule_attr_is_set(const struct nft_rule *r, uint16_t attr) { return r->flags & (1 << attr); } @@ -56,7 +56,7 @@ void nft_set_free(struct nft_set *s) } EXPORT_SYMBOL(nft_set_free); -bool nft_set_attr_is_set(struct nft_set *s, uint16_t attr) +bool nft_set_attr_is_set(const struct nft_set *s, uint16_t attr) { return s->flags & (1 << attr); } diff --git a/src/set_elem.c b/src/set_elem.c index e95a872..4adba91 100644 --- a/src/set_elem.c +++ b/src/set_elem.c @@ -45,7 +45,7 @@ void nft_set_elem_free(struct nft_set_elem *s) } EXPORT_SYMBOL(nft_set_elem_free); -bool nft_set_elem_attr_is_set(struct nft_set_elem *s, uint16_t attr) +bool nft_set_elem_attr_is_set(const struct nft_set_elem *s, uint16_t attr) { return s->flags & (1 << attr); } diff --git a/src/table.c b/src/table.c index e1dbd38..b2ebaa3 100644 --- a/src/table.c +++ b/src/table.c @@ -49,7 +49,7 @@ void nft_table_free(struct nft_table *t) } EXPORT_SYMBOL(nft_table_free); -bool nft_table_attr_is_set(struct nft_table *t, uint16_t attr) +bool nft_table_attr_is_set(const struct nft_table *t, uint16_t attr) { return t->flags & (1 << attr); } |