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 /tests | |
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 'tests')
0 files changed, 0 insertions, 0 deletions