diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-05-06 16:10:10 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-05-06 16:11:32 +0000 |
commit | 28cb3801f4460febc2b828f1bc82150b26a01e62 (patch) | |
tree | 068e59e9a322605c4a2cb2e4b5042df27a60f7cd /main/iputils/fix-init-of-cmsg.patch | |
parent | 6f01709adb0e849c4f4d55786e5e471cbe3878e8 (diff) | |
download | aports-28cb3801f4460febc2b828f1bc82150b26a01e62.tar.bz2 aports-28cb3801f4460febc2b828f1bc82150b26a01e62.tar.xz |
main/iputils: fix initialization of cmsg
fixes ping on s390x
Diffstat (limited to 'main/iputils/fix-init-of-cmsg.patch')
-rw-r--r-- | main/iputils/fix-init-of-cmsg.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/main/iputils/fix-init-of-cmsg.patch b/main/iputils/fix-init-of-cmsg.patch new file mode 100644 index 0000000000..8654a62c90 --- /dev/null +++ b/main/iputils/fix-init-of-cmsg.patch @@ -0,0 +1,18 @@ +diff --git a/ping.c b/ping.c +index a0857a1..329553d 100644 +--- a/ping.c ++++ b/ping.c +@@ -108,8 +108,11 @@ static int parsetos(char *str); + static struct { + struct cmsghdr cm; + struct in_pktinfo ipi; +-} cmsg = { {sizeof(struct cmsghdr) + sizeof(struct in_pktinfo), SOL_IP, IP_PKTINFO}, +- {0, }}; ++} cmsg = { .cm = { ++ .cmsg_len = sizeof(struct cmsghdr) + sizeof(struct in_pktinfo), ++ .cmsg_level = SOL_IP, ++ .cmsg_type = IP_PKTINFO}, ++ .ipi = {0, }}; + int cmsg_len; + + struct sockaddr_in source; |