FreeBSD Port: freevrrpd-0.8.7
Claus Endres
claus at endresconsulting.com
Mon Nov 3 18:05:37 PST 2003
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 at endresconsulting.com
-------------- next part --------------
--- 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"
More information about the freebsd-ports
mailing list