diff options
author | Koen Kooi <koen@openembedded.org> | 2009-06-16 16:08:55 +0200 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-06-16 16:08:55 +0200 |
commit | e33293bf4db621de992d73406d24b9c86b542b1b (patch) | |
tree | 4e278b033c36ce82bbf56e9008009f73c2aa7b54 /recipes/iputils/files | |
parent | 8687813463bc7c9f37349000f75cfc0967da8458 (diff) |
iputils 20071127: touch up debian patches
Diffstat (limited to 'recipes/iputils/files')
-rw-r--r-- | recipes/iputils/files/debian/fix-cmsghdr-offset-bug.diff | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes/iputils/files/debian/fix-cmsghdr-offset-bug.diff b/recipes/iputils/files/debian/fix-cmsghdr-offset-bug.diff index 7ae92df468..0c9bbd8ea0 100644 --- a/recipes/iputils/files/debian/fix-cmsghdr-offset-bug.diff +++ b/recipes/iputils/files/debian/fix-cmsghdr-offset-bug.diff @@ -17,3 +17,21 @@ ICMP6_FILTER_SETBLOCKALL(&filter); if (!working_recverr) { +--- /tmp/ping6.c 2009-06-15 19:13:57.000000000 +0200 ++++ iputils_20071127.orig/ping6.c 2009-06-15 19:14:40.000000000 +0200 +@@ -415,14 +415,9 @@ + exit(2); + } + cmsg = (struct cmsghdr*)(cmsgbuf+cmsglen); +- cmsglen += CMSG_SPACE(sizeof(*ipi)); +- cmsg->cmsg_len = CMSG_LEN(sizeof(*ipi)); ++ cmsglen += CMSG_SPACE(sizeof(ipi)); + cmsg->cmsg_level = SOL_IPV6; + cmsg->cmsg_type = IPV6_PKTINFO; +- +- ipi = (struct in6_pktinfo*)CMSG_DATA(cmsg); +- memset(ipi, 0, sizeof(*ipi)); +- ipi->ipi6_ifindex = ifr.ifr_ifindex; + } + + if ((whereto.sin6_addr.s6_addr16[0]&htons(0xff00)) == htons (0xff00)) { |