libnl/lib/route
Wolfgang Steudel 5702d4c1b9 Only include local addr as peer addr if provided
we're using libnl-1.1 for a project. When trying to delete all
addresses of an interface by only setting interface index and
address family of an rtnl_addr and executing rtnl_addr_delete()
we received some error (I don't remember what it was).

The bug(?) is in build_addr_msg() in lib/route/addr.c:
IFA_ADDRESS is set to a_local when a_peer is not set,
without checking if a_local was set. We just added
   if (tmpl->ce_mask & ADDR_ATTR_LOCAL)
after the "else" (line 496 in the current git).
2008-10-10 12:32:23 +02:00
..
cls Remove old line counting while dumping 2008-05-23 23:45:14 +02:00
link Remove old line counting while dumping 2008-05-23 23:45:14 +02:00
sch Remove old line counting while dumping 2008-05-23 23:45:14 +02:00
addr.c Only include local addr as peer addr if provided 2008-10-10 12:32:23 +02:00
class.c Allow parser callbacks to return NL_OK, NL_SKIP, NL_EXIT 2008-05-15 14:01:57 +02:00
class_api.c Thread-safe error handling 2008-05-14 17:49:44 +02:00
class_obj.c Remove old line counting while dumping 2008-05-23 23:45:14 +02:00
classifier.c Allow parser callbacks to return NL_OK, NL_SKIP, NL_EXIT 2008-05-15 14:01:57 +02:00
cls_api.c Thread-safe error handling 2008-05-14 17:49:44 +02:00
cls_obj.c Remove old line counting while dumping 2008-05-23 23:45:14 +02:00
link.c Remove XML dumping 2008-06-17 03:04:19 +02:00
neigh.c Remove XML dumping 2008-06-17 03:04:19 +02:00
neightbl.c Remove old line counting while dumping 2008-05-23 23:45:14 +02:00
nexthop.c Remove old line counting while dumping 2008-05-23 23:45:14 +02:00
qdisc.c Allow parser callbacks to return NL_OK, NL_SKIP, NL_EXIT 2008-05-15 14:01:57 +02:00
qdisc_api.c Thread-safe error handling 2008-05-14 17:49:44 +02:00
qdisc_obj.c Remove old line counting while dumping 2008-05-23 23:45:14 +02:00
route.c Allow parser callbacks to return NL_OK, NL_SKIP, NL_EXIT 2008-05-15 14:01:57 +02:00
route_obj.c Improved printing of route cache entries 2008-06-16 23:59:09 +02:00
route_utils.c Big routing code rework (API/ABI BREAK!) 2008-04-29 23:31:30 +02:00
rtnl.c Rename struct nl_handle to struct nl_sock 2008-05-15 13:26:32 +02:00
rule.c Remove XML dumping 2008-06-17 03:04:19 +02:00
tc.c Remove old line counting while dumping 2008-05-23 23:45:14 +02:00