From owner-freebsd-current@FreeBSD.ORG Thu Aug 19 14:23:58 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A39C616A4CE for ; Thu, 19 Aug 2004 14:23:58 +0000 (GMT) Received: from ns1.interbgc.com (mail.interbgc.com [217.9.224.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 81E4243D45 for ; Thu, 19 Aug 2004 14:23:57 +0000 (GMT) (envelope-from nike_d@cytexbg.com) Received: (qmail 53256 invoked from network); 19 Aug 2004 14:23:55 -0000 Received: from nike_d@cytexbg.com by keeper.interbgc.com by uid 1002 with qmail-scanner-1.14 (uvscan: v4.2.40/v4374. spamassassin: 2.63. Clear:SA:0(-4.9/8.0):. Processed in 0.905898 secs); 19 Aug 2004 14:23:55 -0000 X-Spam-Status: No, hits=-4.9 required=8.0 Received: from 213-240-202-139.1697748.ddns.cablebg.net (HELO tormentor.totalterror.net) (213.240.202.139) by mail.interbgc.com with SMTP; 19 Aug 2004 14:23:54 -0000 Received: (qmail 73784 invoked from network); 19 Aug 2004 14:26:25 -0000 Received: from unknown (HELO phobos.totalterror.net) (10.0.0.2) by tormentor.totalterror.net with SMTP; 19 Aug 2004 14:26:24 -0000 Message-ID: X-Mailer: http://www.courier-mta.org/cone/ From: Niki Denev To: freebsd-current@freebsd.org Date: Thu, 19 Aug 2004 17:23:52 +0300 Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=_mimegpg-phobos.totalterror.net-20072-1092925432-0001"; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: options FAST_IPSEC + device pfsync incompatibility? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Aug 2004 14:23:58 -0000 This is a MIME GnuPG-signed message. If you see this text, it means that your E-mail or Usenet software does not support MIME signed messages. --=_mimegpg-phobos.totalterror.net-20072-1092925432-0001 Content-Type: text/plain; format=flowed; charset="US-ASCII" Content-Disposition: inline Content-Transfer-Encoding: 7bit While playing for a while with IPSEC and got around the racoon/isakmpd MSIZE related problems, i've decided to give FAST_IPSEC a try. But with option FAST_IPSEC my kernel refused to compile. I tracked down the problem to device pfsync. If it is not in the kernel config, then the kernel compiles OK. here is my config : su-2.05b# uname -a FreeBSD phobos.totalterror.net 6.0-CURRENT FreeBSD 6.0-CURRENT #9: Thu Aug 19 13 :50:12 EEST 2004 root@phobos.totalterror.net:/usr/obj/usr/src/sys/PHOBOS-X31 i386 cvsupped today..., and the kernel stops compiling with this error : cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -W missing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -st d=c99 -g -nostdinc -I- -I. -I../../.. -I../../../contrib/dev/acpica -I../../../ contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contri b/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth =100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-sta ck-boundary=2 -ffreestanding -Werror ../../../netinet/in_proto.c In file included from ../../../netinet/in_proto.c:91: ../../../contrib/pf/net/pfvar.h:57: error: redefinition of `union sockaddr_union ' *** Error code 1 Stop in /usr/src/sys/i386/compile/PHOBOS-X31. --------------------- the problem seems to be that in in_proto.c there is #ifdef DEV_PFSYNC, which if defined includes pfvar.h, but at this point the 'union sockaddr_union' is already defined by another include.... I can supply full kernel config and any other info if needed. Regards, Niki --=_mimegpg-phobos.totalterror.net-20072-1092925432-0001 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQBBJLf4HNAJ/fLbfrkRAv2qAKCBNTf9l/GUlT4Xi6j6U6GkBvAy7wCfRDUM wQZpaGdmRlyZoCBoz8lvVUE= =QTvw -----END PGP SIGNATURE----- --=_mimegpg-phobos.totalterror.net-20072-1092925432-0001--