OoO Vers la fin de l'après-midi du jeudi 15 juillet 2010, vers 16:50, je disais:
>> Trace attached : >> trace_keepalived.log >> >> strace -f -o /tmp/trace_keepalived.log /etc/init.d/keepalived start >> >> syslog : > Try AH instead of PASS for the authentication method. This is a known bug > of 1.2.0. Another solution would be to try this patch. http://cgit.luffy.cx/keepalived/commit/?h=fixes-1.2.0&id=cf6cb2b9c3829400c7c589b23359416467f95256
From cf6cb2b9c3829400c7c589b23359416467f95256 Mon Sep 17 00:00:00 2001 From: Vincent Bernat <ber...@luffy.cx> Date: Sat, 17 Jul 2010 19:56:55 +0200 Subject: [PATCH] VRRP: Fix incorrect computation for packet size Ternary conditional operator has lower precedence than addition. The size of the VRRP packet was incorrectly computed and there was not enough room for plain authentication string. --- keepalived/vrrp/vrrp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/keepalived/vrrp/vrrp.c b/keepalived/vrrp/vrrp.c index 7463d47..4710cf9 100644 --- a/keepalived/vrrp/vrrp.c +++ b/keepalived/vrrp/vrrp.c @@ -86,7 +86,7 @@ vrrp_hd_len(vrrp_rt * vrrp) { int len = sizeof (vrrp_pkt); if (vrrp->family == AF_INET) - len += VRRP_AUTH_LEN + (!LIST_ISEMPTY(vrrp->vip)) ? LIST_SIZE(vrrp->vip) * sizeof (uint32_t) : 0; + len += VRRP_AUTH_LEN + ((!LIST_ISEMPTY(vrrp->vip)) ? LIST_SIZE(vrrp->vip) * sizeof (uint32_t) : 0); return len; } -- 1.7.1
-- I WILL NOT SELL MY KIDNEY ON eBAY I WILL NOT SELL MY KIDNEY ON eBAY I WILL NOT SELL MY KIDNEY ON eBAY -+- Bart Simpson on chalkboard in episode BABF07
pgpx4qLA6ylsO.pgp
Description: PGP signature