summaryrefslogtreecommitdiff
path: root/src/crypt
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-11-19 21:43:10 +0100
committerRich Felker <dalias@aerifal.cx>2015-11-30 14:57:25 -0500
commit7b712844e38bdfc1ef728e257fb8616c16ec4cc8 (patch)
treed115500c8b1bf378476b46867c1a5b6b5f3e320b /src/crypt
parent12978acb3066db738c8c15121e81adbb63739876 (diff)
downloadmusl-7b712844e38bdfc1ef728e257fb8616c16ec4cc8.tar.gz
properly handle point-to-point interfaces in getifaddrs()
With point-to-point interfaces, the IFA_ADDRESS netlink attribute contains the peer address while an extra attribute IFA_LOCAL carries the actual local interface address. Both the glibc and uclibc implementations of getifaddrs() handle this case by moving the ifa_addr contents to the broadcast/remote address union and overwriting ifa_addr upon receipt of an IFA_LOCAL attribute. This patch adds the same special treatment logic of IFA_LOCAL to musl's implementation of getifaddrs() in order to align its behaviour with that of uclibc and glibc. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'src/crypt')
0 files changed, 0 insertions, 0 deletions