Commit 224a0597 authored by Ken-ichirou MATSUZAWA's avatar Ken-ichirou MATSUZAWA Committed by Pablo Neira Ayuso

netfilter: ctnetlink: add const qualifier to nfnl_hook.get_ct

get_ct as is and will not update its skb argument, and users of
nfnl_ct_hook is currently only nfqueue, we can add const qualifier.
Signed-off-by: default avatarKen-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
parent 83f3e94d
...@@ -378,7 +378,7 @@ enum ip_conntrack_info; ...@@ -378,7 +378,7 @@ enum ip_conntrack_info;
struct nlattr; struct nlattr;
struct nfnl_ct_hook { struct nfnl_ct_hook {
struct nf_conn *(*get_ct)(struct sk_buff *skb, struct nf_conn *(*get_ct)(const struct sk_buff *skb,
enum ip_conntrack_info *ctinfo); enum ip_conntrack_info *ctinfo);
size_t (*build_size)(const struct nf_conn *ct); size_t (*build_size)(const struct nf_conn *ct);
int (*build)(struct sk_buff *skb, struct nf_conn *ct, int (*build)(struct sk_buff *skb, struct nf_conn *ct,
......
...@@ -2162,7 +2162,7 @@ ctnetlink_glue_build_size(const struct nf_conn *ct) ...@@ -2162,7 +2162,7 @@ ctnetlink_glue_build_size(const struct nf_conn *ct)
; ;
} }
static struct nf_conn *ctnetlink_glue_get_ct(struct sk_buff *skb, static struct nf_conn *ctnetlink_glue_get_ct(const struct sk_buff *skb,
enum ip_conntrack_info *ctinfo) enum ip_conntrack_info *ctinfo)
{ {
struct nf_conn *ct; struct nf_conn *ct;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment