From c2fdebea421a03d2f1f6879486823f44c3a08352 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Thu, 9 Feb 2012 20:37:20 +0100 Subject: [PATCH] libnl: resync netlink.h with kernel Signed-off-by: Patrick McHardy --- include/linux/netlink.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/include/linux/netlink.h b/include/linux/netlink.h index 281da55..12f9fbd 100644 --- a/include/linux/netlink.h +++ b/include/linux/netlink.h @@ -25,7 +25,8 @@ #define NETLINK_SCSITRANSPORT 18 /* SCSI Transports */ #define NETLINK_ECRYPTFS 19 #define NETLINK_RDMA 20 -#define NETLINK_DECT 21 /* DECT */ +#define NETLINK_CRYPTO 21 /* Crypto layer */ +#define NETLINK_DECT 22 /* DECT */ #define MAX_LINKS 32 @@ -50,6 +51,7 @@ struct nlmsghdr { #define NLM_F_MULTI 2 /* Multipart message, terminated by NLMSG_DONE */ #define NLM_F_ACK 4 /* Reply with ack, with zero or error code */ #define NLM_F_ECHO 8 /* Echo this request */ +#define NLM_F_DUMP_INTR 16 /* Dump was inconsistent due to sequence change */ /* Modifiers to GET request */ #define NLM_F_ROOT 0x100 /* specify tree root */ @@ -222,7 +224,9 @@ struct netlink_callback { int (*dump)(struct sk_buff * skb, struct netlink_callback *cb); int (*done)(struct netlink_callback *cb); - int family; + u16 family; + u16 min_dump_alloc; + unsigned int prev_seq, seq; long args[6]; }; @@ -260,7 +264,8 @@ __nlmsg_put(struct sk_buff *skb, u32 pid, u32 seq, int type, int len, int flags) extern int netlink_dump_start(struct sock *ssk, struct sk_buff *skb, const struct nlmsghdr *nlh, int (*dump)(struct sk_buff *skb, struct netlink_callback*), - int (*done)(struct netlink_callback*)); + int (*done)(struct netlink_callback*), + u16 min_dump_alloc); #define NL_NONROOT_RECV 0x1