aboutsummaryrefslogtreecommitdiffstats
path: root/main/fping/musl-getaddrinfo-workaround.patch
blob: 93ebd00ac039fedbf5620cca0626681497c74536 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- ./src/fping.c.orig	2015-02-02 10:39:46.413468146 -0100
+++ ./src/fping.c	2015-02-02 10:41:00.654442294 -0100
@@ -2045,7 +2045,9 @@
     bzero(&hints, sizeof(struct addrinfo));
     hints.ai_flags = 0;
     hints.ai_family = AF_INET6;
-    hints.ai_socktype = SOCK_RAW;
+    /* setting socket type confuses musl libc and we dont need it for name
+       resolution */
+   // hints.ai_socktype = SOCK_RAW;
     hints.ai_protocol = IPPROTO_ICMPV6;
     ret_ga = getaddrinfo(name, NULL, &hints, &res);
     if (ret_ga) {