aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/musl/patches/920-getifaddrs_ptp_fix.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-25 12:42:00 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-25 12:42:00 +0000
commit99419349e67703ac4f6a09c12fe1256effece24d (patch)
treecdbb7e61ac47ecfe40b1fc56ce2e9fb911d5a316 /toolchain/musl/patches/920-getifaddrs_ptp_fix.patch
parentd9db303af65e436fd51b7dabd3af84ba4b6518bf (diff)
downloadupstream-99419349e67703ac4f6a09c12fe1256effece24d.tar.gz
upstream-99419349e67703ac4f6a09c12fe1256effece24d.tar.bz2
upstream-99419349e67703ac4f6a09c12fe1256effece24d.zip
musl: update to 1.1.12 + git from 2016-01-22
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48486
Diffstat (limited to 'toolchain/musl/patches/920-getifaddrs_ptp_fix.patch')
-rw-r--r--toolchain/musl/patches/920-getifaddrs_ptp_fix.patch18
1 files changed, 0 insertions, 18 deletions
diff --git a/toolchain/musl/patches/920-getifaddrs_ptp_fix.patch b/toolchain/musl/patches/920-getifaddrs_ptp_fix.patch
deleted file mode 100644
index 3e65232563..0000000000
--- a/toolchain/musl/patches/920-getifaddrs_ptp_fix.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- a/src/network/getifaddrs.c
-+++ b/src/network/getifaddrs.c
-@@ -161,6 +161,15 @@ static int netlink_msg_to_ifaddr(void *p
- ifs->ifa.ifa_flags = ifs0->ifa.ifa_flags;
- for (rta = NLMSG_RTA(h, sizeof(*ifa)); NLMSG_RTAOK(rta, h); rta = RTA_NEXT(rta)) {
- switch (rta->rta_type) {
-+ case IFA_LOCAL:
-+ /* If ifa_addr is set and we get IFA_LOCAL, assume we have
-+ * a point-to-point network. Move address to correct field. */
-+ if (ifs->ifa.ifa_addr != NULL) {
-+ ifs->ifu = ifs->addr;
-+ ifs->ifa.ifa_broadaddr = &ifs->ifu.sa;
-+ memset(&ifs->addr, 0, sizeof(ifs->addr));
-+ }
-+ /* fall through */
- case IFA_ADDRESS:
- copy_addr(&ifs->ifa.ifa_addr, ifa->ifa_family, &ifs->addr, RTA_DATA(rta), RTA_DATALEN(rta), ifa->ifa_index);
- break;