[NETFILTER]: nf_conntrack_expect: constify nf_ct_expect_init arguments
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
ef27559b70
commit
1d9d752259
@@ -75,9 +75,9 @@ void nf_ct_unexpect_related(struct nf_conntrack_expect *exp);
|
|||||||
nf_ct_expect_related. You will have to call put afterwards. */
|
nf_ct_expect_related. You will have to call put afterwards. */
|
||||||
struct nf_conntrack_expect *nf_ct_expect_alloc(struct nf_conn *me);
|
struct nf_conntrack_expect *nf_ct_expect_alloc(struct nf_conn *me);
|
||||||
void nf_ct_expect_init(struct nf_conntrack_expect *, int,
|
void nf_ct_expect_init(struct nf_conntrack_expect *, int,
|
||||||
union nf_inet_addr *,
|
const union nf_inet_addr *,
|
||||||
union nf_inet_addr *,
|
const union nf_inet_addr *,
|
||||||
u_int8_t, __be16 *, __be16 *);
|
u_int8_t, const __be16 *, const __be16 *);
|
||||||
void nf_ct_expect_put(struct nf_conntrack_expect *exp);
|
void nf_ct_expect_put(struct nf_conntrack_expect *exp);
|
||||||
int nf_ct_expect_related(struct nf_conntrack_expect *expect);
|
int nf_ct_expect_related(struct nf_conntrack_expect *expect);
|
||||||
|
|
||||||
|
@@ -229,9 +229,9 @@ struct nf_conntrack_expect *nf_ct_expect_alloc(struct nf_conn *me)
|
|||||||
EXPORT_SYMBOL_GPL(nf_ct_expect_alloc);
|
EXPORT_SYMBOL_GPL(nf_ct_expect_alloc);
|
||||||
|
|
||||||
void nf_ct_expect_init(struct nf_conntrack_expect *exp, int family,
|
void nf_ct_expect_init(struct nf_conntrack_expect *exp, int family,
|
||||||
union nf_inet_addr *saddr,
|
const union nf_inet_addr *saddr,
|
||||||
union nf_inet_addr *daddr,
|
const union nf_inet_addr *daddr,
|
||||||
u_int8_t proto, __be16 *src, __be16 *dst)
|
u_int8_t proto, const __be16 *src, const __be16 *dst)
|
||||||
{
|
{
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user