Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Mar 2005 00:08:53 +0059
From:      Claudio Jeker <cjeker@diehard.n-r-g.com>
To:        freebsd-net@freebsd.org
Subject:   Re: OpenBGPD with FreeBSD
Message-ID:  <20050313230915.GF3697@diehard.n-r-g.com>
In-Reply-To: <42348BDF.2080101@authtec.com>
References:  <42348BDF.2080101@authtec.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 14, 2005 at 02:52:15AM +0800, sam wun wrote:
> Hi,
> 
> Had openbgpd ported to freebsd or is it in any progress?
> If I want to install it in FreeBSD, is there any guideline for me to follow?
> 

You have to remove the full pfkey interface and replace it with dummy
functions as it is incompatible. So tcp md5 does not work but I think it
is still broken in FreeBSD anyway.
Here is a diff I created some time ago. Perhaps some other minor changes
are needed.

-- 
:wq Claudio

? obj
Index: Makefile
===================================================================
RCS file: /cvs/src/usr.sbin/bgpd/Makefile,v
retrieving revision 1.19
diff -u -p -r1.19 Makefile
--- Makefile	7 May 2004 10:06:15 -0000	1.19
+++ Makefile	26 May 2004 19:21:27 -0000
@@ -5,7 +5,7 @@
 PROG=	bgpd
 SRCS=	bgpd.c buffer.c session.c log.c parse.y config.c imsg.c \
 	rde.c rde_rib.c rde_decide.c rde_prefix.c mrt.c kroute.c \
-	control.c pfkey.c rde_update.c rde_attr.c printconf.c \
+	control.c pfkey_compat.c rde_update.c rde_attr.c printconf.c \
 	rde_filter.c pftable.c
 CFLAGS+= -Wall -I${.CURDIR}
 CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes
Index: pfkey_compat.c
===================================================================
RCS file: pfkey_compat.c
diff -N pfkey_compat.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ pfkey_compat.c	26 May 2004 19:21:27 -0000
@@ -0,0 +1,26 @@
+#include "bgpd.h"
+#include "session.h"
+
+int
+pfkey_establish(struct peer *p)
+{
+	if (p->conf.auth.method)
+		return (-1);
+	return (0);
+}
+
+int
+pfkey_remove(struct peer *p)
+{
+        if (p->conf.auth.method)
+                return (-1);
+        return (0);
+}
+
+int
+pfkey_init(void)
+{
+	log_warnx("no kernel support for PF_KEY");
+	return (-1);
+}
+



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