aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2009-08-25 16:07:58 +0200
committerPatrick McHardy <kaber@trash.net>2009-08-25 16:07:58 +0200
commit3993832464dd4e14a4c926583a11f0fa92c1f0f0 (patch)
treea84cdac586ee63e48f711ad93dec098ad84c1b6c /include/linux
parentnetlink: constify nlmsghdr arguments (diff)
downloadlinux-dev-3993832464dd4e14a4c926583a11f0fa92c1f0f0.tar.xz
linux-dev-3993832464dd4e14a4c926583a11f0fa92c1f0f0.zip
netfilter: nfnetlink: constify message attributes and headers
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/netfilter/nfnetlink.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/netfilter/nfnetlink.h b/include/linux/netfilter/nfnetlink.h
index bff4d5741d98..9f00da287f2c 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 */
};