Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Nov 2003 13:02:54 +1100
From:      Claus Endres <claus@endresconsulting.com>
To:        spe@bsdfr.org
Cc:        ports@FreeBSD.org
Subject:   FreeBSD Port: freevrrpd-0.8.7
Message-ID:  <3FA708CE.6010605@endresconsulting.com>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------010801080704090803080702
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

Enclosed is a patch file against freevrrpd version 0.8.7
which allows it to compile and execute under FreeBSD 5.1.

The socket needs to be closed and re-opened when going
from Master to Backup, as 5.1 does not seem to deliver
any packets after it sees a MAC address conflict.

Question: would you find it appropriate behaviour if freevrrpd
would execute the backup_script when terminating if its last
state was Master? Would you consider to accept a mod for this?

Regards,
Claus.

-- 
--------------------------------------------------------
Claus Endres                | Phone:  +61-3-5998 2310
Endres Consulting Pty. Ltd. | Mobile: +61-418-595 136
10 Facey Road               | Fax:    +61-3-5998 2540
Devon Meadows, VIC 3977     | claus@endresconsulting.com

--------------010801080704090803080702
Content-Type: text/plain;
 name="patch-ab"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch-ab"

--- Makefile.orig	Thu Jan 30 22:50:55 2003
+++ Makefile	Sun Nov  2 14:41:24 2003
@@ -3,7 +3,7 @@
 PROG=		freevrrpd
 SRCS=		vrrp_misc.c vrrp_multicast.c vrrp_main.c vrrp_thread.c vrrp_state.c vrrp_network.c vrrp_interface.c vrrp_conf.c vrrp_signal.c vrrp_list.c vrrp_moncircuit.c
 CFLAGS+=	-D_REENTRANT -Wall -ggdb
-LDADD=		-fomit-frame-pointer -ansi -lm -pthread
+LDADD=		-fomit-frame-pointer -ansi -lm -lc_r
 WARNS=		0
 BINDIR=		/usr/local/sbin
 MANDIR=		/usr/local/man/man
--- vrrp_conf.h.orig	Thu Jan 30 22:50:55 2003
+++ vrrp_conf.h	Sun Nov  2 14:41:24 2003
@@ -45,7 +45,7 @@
 #include <stdio.h>
 #include <fcntl.h>
 #include <syslog.h>
-#include <varargs.h>
+#include <stdarg.h>
 #include <ctype.h>
 #include <string.h>
 #include <stdlib.h>
--- vrrp_interface.h.orig	Thu Jan 30 22:50:55 2003
+++ vrrp_interface.h	Sun Nov  2 14:41:24 2003
@@ -45,7 +45,7 @@
 #include <string.h>
 #include <syslog.h>
 #include <unistd.h>
-#include <varargs.h>
+#include <stdarg.h>
 #include "vrrp_define.h"
 #include "vrrp_proto.h"
 #include "vrrp_functions.h"
--- vrrp_multicast.h.orig	Thu Jan 30 22:50:55 2003
+++ vrrp_multicast.h	Sun Nov  2 14:41:24 2003
@@ -40,7 +40,7 @@
 #include <string.h>
 #include <syslog.h>
 #include <unistd.h>
-#include <varargs.h>
+#include <stdarg.h>
 #include "vrrp_define.h"
 #include "vrrp_proto.h"
 #include "vrrp_functions.h"
--- vrrp_network.h.orig	Thu Jan 30 22:50:55 2003
+++ vrrp_network.h	Sun Nov  2 14:41:24 2003
@@ -52,7 +52,7 @@
 #include <string.h>
 #include <syslog.h>
 #include <unistd.h>
-#include <varargs.h>
+#include <stdarg.h>
 #include "vrrp_define.h"
 #include "vrrp_proto.h"
 #include "vrrp_functions.h"
--- vrrp_signal.h.orig	Thu Jan 30 22:50:56 2003
+++ vrrp_signal.h	Sun Nov  2 14:41:24 2003
@@ -36,7 +36,7 @@
 #include <signal.h>
 #include <stdlib.h>
 #include <syslog.h>
-#include <varargs.h>
+#include <stdarg.h>
 #include "vrrp_define.h"
 #include "vrrp_proto.h"
 #include "vrrp_functions.h"
--- vrrp_state.c.orig	Fri May  9 20:29:11 2003
+++ vrrp_state.c	Sun Nov  2 14:44:32 2003
@@ -128,6 +128,8 @@
 		else
 			syslog(LOG_INFO, "[backup] script %s has been executed\n", vr->backup_script);
 	}
+        close(vr->sd);
+	vrrp_multicast_open_socket(vr);
 
 	return 0;
 }
--- vrrp_state.h.orig	Thu Jan 30 22:50:56 2003
+++ vrrp_state.h	Sun Nov  2 14:41:24 2003
@@ -45,7 +45,7 @@
 #include <string.h>
 #include <syslog.h>
 #include <unistd.h>
-#include <varargs.h>
+#include <stdarg.h>
 #include "vrrp_define.h"
 #include "vrrp_proto.h"
 #include "vrrp_functions.h"
--- vrrp_thread.h.orig	Thu Jan 30 22:50:56 2003
+++ vrrp_thread.h	Sun Nov  2 14:41:24 2003
@@ -39,7 +39,7 @@
 #include <semaphore.h>
 #include <stdio.h>
 #include <syslog.h>
-#include <varargs.h>
+#include <stdarg.h>
 #include "vrrp_define.h"
 #include "vrrp_proto.h"
 #include "vrrp_functions.h"

--------------010801080704090803080702--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FA708CE.6010605>