diff options
author | Thomas Graf <tgraf@suug.ch> | 2011-04-13 16:42:34 +0200 |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2011-04-13 16:42:34 +0200 |
commit | 96bc6d6f66454cba0daa637cbfd714da3539c687 (patch) | |
tree | 2b61ae982a914910825babd096d842445da127be /include | |
parent | b5918b5ce3c48271abe4c021431f2b978af28f73 (diff) | |
download | libnl-96bc6d6f66454cba0daa637cbfd714da3539c687.tar.gz |
Improve rtnl_link_change() behaviour
- avoid unncessary name change requests
The kernel does not check if the specified IFNAME is different
from the current name. It assumes that if IFNAME and ifindex
are both specified, a name change is requested. Therefore avoid
specyfing IFNAME if ifindex is provided and original and new
name are identical.
- move link building to own function (to allow link add later on)
- error if immutable changes have been made
- better documentation
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink/errno.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/netlink/errno.h b/include/netlink/errno.h index 93dc163..267a745 100644 --- a/include/netlink/errno.h +++ b/include/netlink/errno.h @@ -48,8 +48,9 @@ extern "C" { #define NLE_PKTLOC_FILE 29 #define NLE_PARSE_ERR 30 #define NLE_NODEV 31 +#define NLE_IMMUTABLE 32 -#define NLE_MAX NLE_NODEV +#define NLE_MAX NLE_IMMUTABLE extern const char * nl_geterror(int); extern void nl_perror(int, const char *); |