diff options
author | Thomas Graf <tgraf@suug.ch> | 2011-07-14 08:51:49 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2011-07-14 08:51:49 (GMT) |
commit | 21d52eabba00089e3319575616a429fb75309cb7 (patch) | |
tree | 90a89e99e2d631d2e6ad3ada665d9f16cd6d5361 /include | |
parent | dba0e91a09dcd928ebc4e8ce4db8cc6cd471d8f9 (diff) | |
download | libnl-21d52eabba00089e3319575616a429fb75309cb7.zip libnl-21d52eabba00089e3319575616a429fb75309cb7.tar.gz libnl-21d52eabba00089e3319575616a429fb75309cb7.tar.bz2 |
Support for NLM_F_INTR
Check if a dump was interrupted and needs to be redone
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netlink.h | 1 | ||||
-rw-r--r-- | include/netlink/errno.h | 3 | ||||
-rw-r--r-- | include/netlink/handlers.h | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/netlink.h b/include/linux/netlink.h index 0abcdaf..3925254 100644 --- a/include/linux/netlink.h +++ b/include/linux/netlink.h @@ -49,6 +49,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 */ diff --git a/include/netlink/errno.h b/include/netlink/errno.h index 267a745..f8b5130 100644 --- a/include/netlink/errno.h +++ b/include/netlink/errno.h @@ -49,8 +49,9 @@ extern "C" { #define NLE_PARSE_ERR 30 #define NLE_NODEV 31 #define NLE_IMMUTABLE 32 +#define NLE_DUMP_INTR 33 -#define NLE_MAX NLE_IMMUTABLE +#define NLE_MAX NLE_DUMP_INTR extern const char * nl_geterror(int); extern void nl_perror(int, const char *); diff --git a/include/netlink/handlers.h b/include/netlink/handlers.h index f373f58..dfa2809 100644 --- a/include/netlink/handlers.h +++ b/include/netlink/handlers.h @@ -108,6 +108,8 @@ enum nl_cb_type { NL_CB_SEQ_CHECK, /** Sending of an acknowledge message has been requested */ NL_CB_SEND_ACK, + /** Flag NLM_F_DUMP_INTR is set in message */ + NL_CB_DUMP_INTR, __NL_CB_TYPE_MAX, }; |