netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] netlink: Make nlmsg_find_attr take a const nlmsghdr*.
@ 2010-11-04  2:35 Nelson Elhage
  2010-11-04  2:35 ` [PATCH 2/2] inet_diag: Make sure we actually run the same bytecode we audited Nelson Elhage
  2010-11-04 19:26 ` [PATCH 1/2] netlink: Make nlmsg_find_attr take a const nlmsghdr* David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Nelson Elhage @ 2010-11-04  2:35 UTC (permalink / raw)
  To: netdev; +Cc: Nelson Elhage

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

Signed-off-by: Nelson Elhage <nelhage@ksplice.com>
---
 include/net/netlink.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/net/netlink.h b/include/net/netlink.h
index f3b201d..9801c55 100644
--- a/include/net/netlink.h
+++ b/include/net/netlink.h
@@ -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),
-- 
1.7.1.31.g6297e


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-11-04 19:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-04  2:35 [PATCH 1/2] netlink: Make nlmsg_find_attr take a const nlmsghdr* Nelson Elhage
2010-11-04  2:35 ` [PATCH 2/2] inet_diag: Make sure we actually run the same bytecode we audited Nelson Elhage
2010-11-04 13:28   ` Thomas Graf
2010-11-04 19:26     ` David Miller
2010-11-04 19:26 ` [PATCH 1/2] netlink: Make nlmsg_find_attr take a const nlmsghdr* David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).