aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netlink.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/netlink.h')
-rw-r--r--include/linux/netlink.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/linux/netlink.h b/include/linux/netlink.h
index a390e9d54827..1f8c1a95f57c 100644
--- a/include/linux/netlink.h
+++ b/include/linux/netlink.h
@@ -248,11 +248,15 @@ __nlmsg_put(struct sk_buff *skb, u32 pid, u32 seq, int type, int len, int flags)
248#define NLMSG_PUT(skb, pid, seq, type, len) \ 248#define NLMSG_PUT(skb, pid, seq, type, len) \
249 NLMSG_NEW(skb, pid, seq, type, len, 0) 249 NLMSG_NEW(skb, pid, seq, type, len, 0)
250 250
251struct netlink_dump_control {
252 int (*dump)(struct sk_buff *skb, struct netlink_callback *);
253 int (*done)(struct netlink_callback*);
254 u16 min_dump_alloc;
255};
256
251extern int netlink_dump_start(struct sock *ssk, struct sk_buff *skb, 257extern int netlink_dump_start(struct sock *ssk, struct sk_buff *skb,
252 const struct nlmsghdr *nlh, 258 const struct nlmsghdr *nlh,
253 int (*dump)(struct sk_buff *skb, struct netlink_callback*), 259 struct netlink_dump_control *control);
254 int (*done)(struct netlink_callback*),
255 u16 min_dump_alloc);
256 260
257 261
258#define NL_NONROOT_RECV 0x1 262#define NL_NONROOT_RECV 0x1