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); +} + _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"