[lkml]   [2011]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[25/35] netlink: Make nlmsg_find_attr take a const nlmsghdr*.
2.6.33-longterm review patch.  If anyone has any objections, please let us know.


From: Nelson Elhage <>

commit 6b8c92ba07287578718335ce409de8e8d7217e40 upstream.

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

Signed-off-by: Nelson Elhage <>
Signed-off-by: David S. Miller <>
Signed-off-by: Greg Kroah-Hartman <>

include/net/netlink.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/include/net/netlink.h
+++ b/include/net/netlink.h
@@ -384,7 +384,7 @@ static inline int nlmsg_parse(const stru
* 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),

 \ /
  Last update: 2011-07-09 08:07    [W:0.100 / U:3.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site