diff options
author | Thomas Haller <thaller@redhat.com> | 2014-11-26 17:17:16 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-11-27 09:34:57 (GMT) |
commit | b54775d3169b56d9c0aee47d6937b0358a5443e0 (patch) | |
tree | c50289c17a86575fe9cbafb87e278608ca137cef /include/netlink/handlers.h | |
parent | 8b023fd441c3fd96aad2acca31d2702b1aa1f21e (diff) | |
download | libnl-b54775d3169b56d9c0aee47d6937b0358a5443e0.zip libnl-b54775d3169b56d9c0aee47d6937b0358a5443e0.tar.gz libnl-b54775d3169b56d9c0aee47d6937b0358a5443e0.tar.bz2 |
route/link: return -NLE_OPNOTSUPP in rtnl_link_get_kernel() for old kernels
Older kernels without patch a3d1289126e7b14307074b76bf1677015ea5036f do
not support rtnl_getlink() by ifname. Detect this situation and fail
with -NLE_OPNOTSUPP instead of -NLE_INVAL.
This changes behavior in returning a different error code for this
case.
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'include/netlink/handlers.h')
0 files changed, 0 insertions, 0 deletions