commit | 2b3fabab9ef2445ab1c48de0fed82514e4eb32dc | [log] [tgz] |
---|---|---|
author | David Lamparter <equinox@diac24.net> | Wed Oct 13 15:17:33 2010 +0200 |
committer | Thomas Graf <tgraf@suug.ch> | Wed Oct 13 15:21:14 2010 +0200 |
tree | 26465f4f838a96173b897fffc51ae03371dd223c | |
parent | cb05bbb0e2d38f41569754e1505c22929537c17e [diff] |
route_obj: don't add empty destination to nlmsg 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. Signed-off-by: David Lamparter <equinox@diac24.net>