[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-ha-dev
Subject: [Linux-ha-dev] [patch 1/5] Remove local check
From: Horms <horms () verge ! net ! au>
Date: 2007-04-19 8:19:24
Message-ID: 20070419082923.425886021 () verge ! net ! au
[Download RAW message or body]
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
diff -r ee4486ddff77 heartbeat/resource.d/IPv6addr.c
--- a/heartbeat/resource.d/IPv6addr.c Thu Nov 30 11:55:23 2006 +0900
+++ b/heartbeat/resource.d/IPv6addr.c Fri Apr 06 07:15:32 2007 -0700
@@ -563,7 +573,6 @@ is_addr6_available(struct in6_addr* addr
struct iovec iov;
u_char packet[64];
struct msghdr msg;
- struct in6_addr local;
icmp_sock = socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6);
icmph.icmp6_type = ICMPV6_ECHO_REQUEST;
@@ -598,10 +607,6 @@ is_addr6_available(struct in6_addr* addr
ret = recvmsg(icmp_sock, &msg, MSG_DONTWAIT);
if (0 >= ret) {
- return -1;
- }
- inet_pton(AF_INET6, "::1", &local);
- if (0 != memcmp(&local, &addr.sin6_addr,sizeof(local))) {
return -1;
}
--
--
Horms
H: http://www.vergenet.net/~horms/
W: http://www.valinux.co.jp/en/
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic