Only include local addr as peer addr if provided
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).

tgraf/libnl,teto/libnl_old,kolyshkin/libnl,dsahern/libnl,karlhiramoto/libnl,cyclops8456/libnl3,congwang/libnl,yinquan529/platform-external-libnl,houstar/libnl,baloo/libnl,tklauser/libnl,UnicronNL/libnl3,greearb/libnl-ct,chitranshi/libnl,greearb/libnl-ct,honsys/libnl,CyanogenMod/android_external_libnl,tklauser/libnl,kolyshkin/libnl,geekboxzone/lollipop_external_libnl,tklauser/libnl,karlhiramoto/libnl,baloo/libnl,HolyShitMan/libnl-1,dsahern/libnl,cyclops8456/libnl3,congwang/libnl,houstar/libnl,greearb/libnl-ct,houstar/libnl,Distrotech/libnl,UnicronNL/libnl3,thom311/libnl,kolyshkin/libnl,karlhiramoto/libnl,gxk/libnl,cyclops8456/libnl3,cyclops8456/libnl3,Omegaphora/external_libnl,android-ia/platform_external_libnl,socketpair/libnl,gxk/libnl,cfriedt/libnl,claudelee/libnl,kolyshkin/libnl,chitranshi/libnl,xin3liang/platform_external_libnl,Distrotech/libnl,baloo/libnl,cfriedt/libnl,tgraf/libnl,vyos/libnl3,mshirley/libnl,thom311/libnl,teto/libnl_old,UnicronNL/libnl3,CyanogenMod/android_external_libnl,karlhiramoto/libnl,claudelee/libnl,thiz11/platform_external_libnl,honsys/libnl,dsahern/libnl,mshirley/libnl,yinquan529/platform-external-libnl,cfriedt/libnl,Omegaphora/external_libnl,android-ia/platform_external_libnl,gxk/libnl,baloo/libnl,thom311/libnl,HolyShitMan/libnl-1,UnicronNL/libnl3,HolyShitMan/libnl-1,congwang/libnl,dsahern/libnl,Distrotech/libnl,chitranshi/libnl,xin3liang/platform_external_libnl,thiz11/platform_external_libnl,socketpair/libnl,Distrotech/libnl,houstar/libnl,mshirley/libnl,vyos/libnl3,geekboxzone/mmallow_external_libnl,claudelee/libnl,vyos/libnl3,vyos/libnl3,teto/libnl_old,honsys/libnl,tgraf/libnl,tklauser/libnl,geekboxzone/lollipop_external_libnl,cfriedt/libnl,socketpair/libnl,chitranshi/libnl,HolyShitMan/libnl-1,honsys/libnl,bcopeland/android_libnl,congwang/libnl,geekboxzone/mmallow_external_libnl,claudelee/libnl,bcopeland/android_libnl,teto/libnl_old,mshirley/libnl,tgraf/libnl