[PATCH 3/3 B] route/link: return NLE_OPNOTSUPP in rtnl_link_get_kernel() for old kernels

Thomas Graf tgraf at suug.ch
Wed Nov 26 15:03:06 PST 2014


On 11/26/14 at 06:17pm, Thomas Haller wrote:
> Older kernels without patch a3d1289126e7b14307074b76bf1677015ea5036f do
> not support rtnl_getlink() by ifname. Detect this situation in libnl3
> and return NLE_OPNOTSUPP instead of NLE_INVAL.
> 
> Signed-off-by: Thomas Haller <thaller at redhat.com>

I think it is fine to change the error code like this. I doubt that
anyone is checking for EINVAL specifically.

Acked-by: Thomas Graf <tgraf at suug.ch>



More information about the libnl mailing list