diff options
author | Patrick McHardy <kaber@trash.net> | 2009-08-25 16:07:58 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2009-08-25 16:07:58 +0200 |
commit | 3993832464dd4e14a4c926583a11f0fa92c1f0f0 (patch) | |
tree | a84cdac586ee63e48f711ad93dec098ad84c1b6c /include | |
parent | 3a6c2b419b7768703cfb2cabdb894517c5065e33 (diff) | |
download | op-kernel-dev-3993832464dd4e14a4c926583a11f0fa92c1f0f0.zip op-kernel-dev-3993832464dd4e14a4c926583a11f0fa92c1f0f0.tar.gz |
netfilter: nfnetlink: constify message attributes and headers
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netfilter/nfnetlink.h | 3 | ||||
-rw-r--r-- | include/net/netfilter/nf_nat_core.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/netfilter/nfnetlink.h b/include/linux/netfilter/nfnetlink.h index bff4d57..9f00da2 100644 --- a/include/linux/netfilter/nfnetlink.h +++ b/include/linux/netfilter/nfnetlink.h @@ -58,7 +58,8 @@ struct nfgenmsg { struct nfnl_callback { int (*call)(struct sock *nl, struct sk_buff *skb, - struct nlmsghdr *nlh, struct nlattr *cda[]); + const struct nlmsghdr *nlh, + const struct nlattr * const cda[]); const struct nla_policy *policy; /* netlink attribute policy */ const u_int16_t attr_count; /* number of nlattr's */ }; diff --git a/include/net/netfilter/nf_nat_core.h b/include/net/netfilter/nf_nat_core.h index 5868406..33602ab 100644 --- a/include/net/netfilter/nf_nat_core.h +++ b/include/net/netfilter/nf_nat_core.h @@ -31,6 +31,6 @@ struct nlattr; extern int (*nfnetlink_parse_nat_setup_hook)(struct nf_conn *ct, enum nf_nat_manip_type manip, - struct nlattr *attr); + const struct nlattr *attr); #endif /* _NF_NAT_CORE_H */ |