diff options
author | Patrick McHardy <kaber@trash.net> | 2009-08-25 16:07:40 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2009-08-25 16:07:40 +0200 |
commit | 3a6c2b419b7768703cfb2cabdb894517c5065e33 (patch) | |
tree | d8d8dc9ad34ffdd2f0f56876e9d3b6f0e6d5eceb /include/net/netlink.h | |
parent | netfilter: nf_conntrack: log packets dropped by helpers (diff) | |
download | linux-3a6c2b419b7768703cfb2cabdb894517c5065e33.tar.xz linux-3a6c2b419b7768703cfb2cabdb894517c5065e33.zip |
netlink: constify nlmsghdr arguments
Consitfy nlmsghdr arguments to a couple of functions as preparation
for the next patch, which will constify the netlink message data in
all nfnetlink users.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/net/netlink.h')
-rw-r--r-- | include/net/netlink.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/netlink.h b/include/net/netlink.h index 007bdb07dabb..a63b2192ac1c 100644 --- a/include/net/netlink.h +++ b/include/net/netlink.h @@ -365,7 +365,7 @@ static inline struct nlmsghdr *nlmsg_next(struct nlmsghdr *nlh, int *remaining) * * See nla_parse() */ -static inline int nlmsg_parse(struct nlmsghdr *nlh, int hdrlen, +static inline int nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy) { @@ -414,7 +414,7 @@ static inline int nlmsg_validate(struct nlmsghdr *nlh, int hdrlen, int maxtype, * * Returns 1 if a report back to the application is requested. */ -static inline int nlmsg_report(struct nlmsghdr *nlh) +static inline int nlmsg_report(const struct nlmsghdr *nlh) { return !!(nlh->nlmsg_flags & NLM_F_ECHO); } |