mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 00:56:46 +07:00
netfilter: constify arg to is_dying/confirmed
Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
3f8b61b7f9
commit
d51ed8367b
@ -270,12 +270,12 @@ static inline int nf_ct_is_template(const struct nf_conn *ct)
|
||||
}
|
||||
|
||||
/* It's confirmed if it is, or has been in the hash table. */
|
||||
static inline int nf_ct_is_confirmed(struct nf_conn *ct)
|
||||
static inline int nf_ct_is_confirmed(const struct nf_conn *ct)
|
||||
{
|
||||
return test_bit(IPS_CONFIRMED_BIT, &ct->status);
|
||||
}
|
||||
|
||||
static inline int nf_ct_is_dying(struct nf_conn *ct)
|
||||
static inline int nf_ct_is_dying(const struct nf_conn *ct)
|
||||
{
|
||||
return test_bit(IPS_DYING_BIT, &ct->status);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user