summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2011-04-13 16:42:34 +0200
committerThomas Graf <tgraf@suug.ch>2011-04-13 16:42:34 +0200
commit96bc6d6f66454cba0daa637cbfd714da3539c687 (patch)
tree2b61ae982a914910825babd096d842445da127be /include
parentb5918b5ce3c48271abe4c021431f2b978af28f73 (diff)
downloadlibnl-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.h3
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 *);