Heartbeat STABLE 1.2

changeset 2870:d4c611cf66b7

[IPv6addr] Remove local check
This check seems to cause an error on Debian Etch and as it has
been removed from the 2.0 tree it seems safe enough to do it here too.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=417835
author Horms <horms@verge.net.au>
date Fri Apr 20 11:31:15 2007 +0900 (2 years ago)
parents ee4486ddff77
children 9dbed9140821
files heartbeat/resource.d/IPv6addr.c
line diff
1.1 --- a/heartbeat/resource.d/IPv6addr.c Thu Nov 30 11:55:23 2006 +0900 1.2 +++ b/heartbeat/resource.d/IPv6addr.c Fri Apr 20 11:31:15 2007 +0900 1.3 @@ -563,7 +563,6 @@ 1.4 struct iovec iov; 1.5 u_char packet[64]; 1.6 struct msghdr msg; 1.7 - struct in6_addr local; 1.8 1.9 icmp_sock = socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6); 1.10 icmph.icmp6_type = ICMPV6_ECHO_REQUEST; 1.11 @@ -600,10 +599,6 @@ 1.12 if (0 >= ret) { 1.13 return -1; 1.14 } 1.15 - inet_pton(AF_INET6, "::1", &local); 1.16 - if (0 != memcmp(&local, &addr.sin6_addr,sizeof(local))) { 1.17 - return -1; 1.18 - } 1.19 1.20 return 0; 1.21 }