[PATCH 1/1] route: rtnl_route_build_msg() should not overwrite the route scope

Thomas Graf tgraf at suug.ch
Thu Feb 20 09:58:35 EST 2014


On 02/14/14 at 10:13am, Thomas Haller wrote:
> rtnl_route_build_msg() should allow the user to set the route scope
> explicitly to RT_SCOPE_NOWHERE and it should only try to guess the
> scope, if it was not explicitly specified.
> 
> This is useful for IPv4 addresses, 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.
> 
> Signed-off-by: Thomas Haller <thaller at redhat.com>

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



More information about the libnl mailing list