Skip to content
Snippets Groups Projects
Commit 6b8c92ba authored by Nelson Elhage's avatar Nelson Elhage Committed by David S. Miller
Browse files

netlink: Make nlmsg_find_attr take a const nlmsghdr*.


This will let us use it on a nlmsghdr stored inside a netlink_callback.

Signed-off-by: default avatarNelson Elhage <nelhage@ksplice.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1f1b9c99
No related branches found
No related tags found
No related merge requests found
......@@ -384,7 +384,7 @@ static inline int nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen,
*
* Returns the first attribute which matches the specified type.
*/
static inline struct nlattr *nlmsg_find_attr(struct nlmsghdr *nlh,
static inline struct nlattr *nlmsg_find_attr(const struct nlmsghdr *nlh,
int hdrlen, int attrtype)
{
return nla_find(nlmsg_attrdata(nlh, hdrlen),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment