summaryrefslogtreecommitdiff
path: root/include/linux/netfilter.h
diff options
context:
space:
mode:
authorKen-ichirou MATSUZAWA <chamaken@gmail.com>2015-10-05 11:49:56 +0900
committerPablo Neira Ayuso <pablo@netfilter.org>2015-10-05 17:32:13 +0200
commit224a05975ebbbdf507c65043f8aba280ccb39e6e (patch)
treee4288887883783185579297d0f0c212a9bb84915 /include/linux/netfilter.h
parent83f3e94d3477d79e603a1cf4c3e0c14da0f02688 (diff)
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: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
Diffstat (limited to 'include/linux/netfilter.h')
-rw-r--r--include/linux/netfilter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h
index 27747deb96ed..edb3dc32f1da 100644
--- a/include/linux/netfilter.h
+++ b/include/linux/netfilter.h
@@ -378,7 +378,7 @@ enum ip_conntrack_info;
struct nlattr;
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);
size_t (*build_size)(const struct nf_conn *ct);
int (*build)(struct sk_buff *skb, struct nf_conn *ct,