[PATCH] Allow setting the default route.

Thomas Graf tgraf at infradead.org
Fri May 18 09:08:32 EDT 2012


On Wed, May 16, 2012 at 03:14:05PM -0400, Bushman, Jeff wrote:
> Below is a patch which allows setting the default route, which is a route with no destination.
> 
> It also fixes a bug with setting the table attribute of a route. It only puts the table
> attribute in the header if it is less than 256, and if it is greater
> than 255, sets it as a U32 attribute.
> 
> It changes the scope guessing algorithm to match the one used by iproute2
> when setting a route.
> 
> It uses the algorithm from iproute2 for setting the table ID for a route if
> it is not specified by the caller.
> 
> With this patch, I was able to create a default route entry that was identical (or nearly so)
> to the one created by using iproute2 from the command line.

Your mail client has corrupted this patch to a degree that makes it
non trivial to fix up. Can you please resubmit in a way that does
not cause corruption. Also, please make proper use of tabs to follow
the coding style.

~Thomas



More information about the libnl mailing list