route: rtnl_route_build_msg() should not overwrite the route scope
route: rtnl_route_build_msg() should not overwrite the route scope

rtnl_route_build_msg() should allow the user to set the route scope
explicitly to RT_SCOPE_NOWHERE.

This is useful for IPv4 routes, because when deleting a route,
the kernel requires the scope to match, unless the scope is set to
RT_SCOPE_NOWHERE. Thus by setting the scope to RT_SCOPE_NOWHERE,
the user can delete a route, even without knowing its scope.

rtnl_route_build_msg() should only try to guess the scope, if it was
not explicitly specified.

Signed-off-by: Thomas Haller <16e26612e4159990a6b3691e92592e691ff74132@redhat.com>
Acked-by: Thomas Graf <17c2d8920621522552b392f72d8fdb4d1e866b44@suug.ch>

vyos/libnl3,baloo/libnl,cyclops8456/libnl3,honsys/libnl,congwang/libnl,vyos/libnl3,HolyShitMan/libnl-1,greearb/libnl-ct,cyclops8456/libnl3,mshirley/libnl,tgraf/libnl,greearb/libnl-ct,kolyshkin/libnl,cfriedt/libnl,cfriedt/libnl,dsahern/libnl,houstar/libnl,UnicronNL/libnl3,cyclops8456/libnl3,houstar/libnl,thom311/libnl,kolyshkin/libnl,claudelee/libnl,claudelee/libnl,mshirley/libnl,houstar/libnl,mshirley/libnl,tklauser/libnl,tklauser/libnl,claudelee/libnl,honsys/libnl,tklauser/libnl,greearb/libnl-ct,baloo/libnl,cyclops8456/libnl3,dsahern/libnl,HolyShitMan/libnl-1,houstar/libnl,honsys/libnl,vyos/libnl3,congwang/libnl,dsahern/libnl,baloo/libnl,cfriedt/libnl,congwang/libnl,vyos/libnl3,congwang/libnl,UnicronNL/libnl3,HolyShitMan/libnl-1,UnicronNL/libnl3,dsahern/libnl,tgraf/libnl,UnicronNL/libnl3,tklauser/libnl,thom311/libnl,mshirley/libnl,thom311/libnl,tgraf/libnl,honsys/libnl,kolyshkin/libnl,baloo/libnl,HolyShitMan/libnl-1,kolyshkin/libnl,tgraf/libnl,cfriedt/libnl,claudelee/libnl