From owner-freebsd-ports@FreeBSD.ORG Mon Nov 3 18:05:37 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD1A916A4CE for ; Mon, 3 Nov 2003 18:05:36 -0800 (PST) Received: from minbar.b5.nu (minbar.b5.nu [203.43.74.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D3A543F3F for ; Mon, 3 Nov 2003 18:05:34 -0800 (PST) (envelope-from claus@endresconsulting.com) Received: from endresconsulting.com (callisto.endresconsulting.com [203.43.74.101]) by minbar.b5.nu (8.9.3/8.9.3) with ESMTP id NAA30429; Tue, 4 Nov 2003 13:05:23 +1100 (AEDT) (envelope-from claus@endresconsulting.com) Message-ID: <3FA708CE.6010605@endresconsulting.com> Date: Tue, 04 Nov 2003 13:02:54 +1100 From: Claus Endres User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20031015 X-Accept-Language: en-us, en MIME-Version: 1.0 To: spe@bsdfr.org Content-Type: multipart/mixed; boundary="------------010801080704090803080702" cc: ports@FreeBSD.org Subject: FreeBSD Port: freevrrpd-0.8.7 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2003 02:05:37 -0000 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 #include #include -#include +#include #include #include #include --- 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 #include #include -#include +#include #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 #include #include -#include +#include #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 #include #include -#include +#include #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 #include #include -#include +#include #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 #include #include -#include +#include #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 #include #include -#include +#include #include "vrrp_define.h" #include "vrrp_proto.h" #include "vrrp_functions.h" --------------010801080704090803080702--