diff options
author | Thomas Haller <thaller@redhat.com> | 2018-02-17 16:33:00 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-02-21 12:08:46 +0100 |
commit | b3633a282d9b4a22cd605914219cf1d423bfcfcf (patch) | |
tree | 053cfe8a65ee0662c3092cd36d86c3e1a2591952 /src/platform/nm-netlink.h | |
parent | ba25221236f545eaee380e2425d213c480340f12 (diff) |
platform: cleanup error handling in event_handler_recvmsgs()
Now that we cleaned up nl_recv(), we have full control over which error
variables are returned when. We no longer need to check "errno"
directly, and we no longer need the NLE_USER_* workaround.
Diffstat (limited to 'src/platform/nm-netlink.h')
-rw-r--r-- | src/platform/nm-netlink.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/platform/nm-netlink.h b/src/platform/nm-netlink.h index 43bd238663..42e46d6c69 100644 --- a/src/platform/nm-netlink.h +++ b/src/platform/nm-netlink.h @@ -37,15 +37,10 @@ #define NLE_DUMP_INTR (_NLE_BASE + 6) #define NLE_ATTRSIZE (_NLE_BASE + 7) #define NLE_BAD_SOCK (_NLE_BASE + 8) -#define NLE_NOADDR (_NLE_BASE + 12) -#define NLE_MSG_OVERFLOW (_NLE_BASE + 13) +#define NLE_NOADDR (_NLE_BASE + 9) +#define NLE_MSG_OVERFLOW (_NLE_BASE + 10) -/* user errors, these errors are never returned by netlink functions themself, - * but are reserved for other components. */ -#define NLE_USER_NOBUFS (_NLE_BASE + 15) -#define NLE_USER_MSG_TRUNC (_NLE_BASE + 16) - -#define _NLE_BASE_END (_NLE_BASE + 17) +#define _NLE_BASE_END (_NLE_BASE + 11) static inline int nl_errno (int err) |