[PATCH RESEND] route_obj: don't add empty destination to nlmsg

Thomas Graf tgraf at infradead.org
Thu Oct 14 07:01:26 EDT 2010


On Thu, Oct 14, 2010 at 06:56:36AM -0400, Thomas Graf wrote:
> On Wed, Oct 13, 2010 at 03:17:33PM +0200, David Lamparter wrote:
> > don't try to give the kernel an empty RTA_DST attribute. this would
> > previously happening on trying to delete the default route as returned
> > from the kernel. the kernel doesn't add a RTA_DST atttribute, so libnl
> > does nl_addr_alloc(0) and inserts a zero-length RTA_DST attribute into
> > the deletion request, which the kernel then refuses with ERANGE.
> 
> Already applied, part of 2.0 release.

Sorry for the noise, your resend somehow ended up in my mailbox twice :-)



More information about the libnl mailing list