From owner-freebsd-ipfw@FreeBSD.ORG Thu May 7 21:23:20 2009 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DCE4106566C for ; Thu, 7 May 2009 21:23:20 +0000 (UTC) (envelope-from raffaele.delorenzo@libero.it) Received: from cp-out9.libero.it (cp-out9.libero.it [212.52.84.109]) by mx1.freebsd.org (Postfix) with ESMTP id 3129B8FC1A for ; Thu, 7 May 2009 21:23:20 +0000 (UTC) (envelope-from raffaele.delorenzo@libero.it) Received: from [10.0.0.1] (151.49.36.1) by cp-out9.libero.it (8.5.107) id 4A01A1E70035DBAB; Thu, 7 May 2009 23:23:18 +0200 Message-Id: <5E7FA6DC-E311-406D-8F9A-D832BC80FA98@libero.it> From: Raffaele De Lorenzo To: Steve Bertrand In-Reply-To: <4A0348D2.5050906@ibctech.ca> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Thu, 7 May 2009 23:22:59 +0200 References: <3233DB7C-06E8-4AFE-9704-0F900925DAE3@libero.it> <4A0348D2.5050906@ibctech.ca> X-Mailer: Apple Mail (2.930.3) Cc: freebsd-ipfw@freebsd.org, Kevin Oberman , Luigi Rizzo Subject: Re: [ipfw patch - add ipv6 support for table mechanism] request for testing/commit X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 May 2009 21:23:20 -0000 Thank you Steve. I think that this is a header problem (O_IP6_SRC_LOOKUP ecc are defined inside the header).... are you posted the new "ip_fw.h" file in "/sys/netinet/" directory? Next type "make clean && make" to recompile the userland binary. Raffaele On 07/mag/09, at 22:47, Steve Bertrand wrote: > Raffaele De Lorenzo wrote: > >> Put the "ip_fw2.c" and "ip_fw.h" files inside the "/sys/netinet/ >> directory" >> Put the "ipfw2.c" file inside the /src/sbin/ipfw/ directory >> >> Rebuild the ipfw kernel module or rebuild you kernel >> Rebuild the ipfw bin or the entire SBIN. >> >> The Sources was tested on FreeBSD 7.2 Release. >> >> Let me know any troubles > > Excellent work! However, the kernel module builds fine, but the > userland > binary does not. > > fbsd1# uname -a > > FreeBSD fbsd1 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 08:49:13 > UTC 2009 root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/ > GENERIC i386 > > ===> ipfw (all) > Warning: Object directory not changed from original /usr/src/sbin/ipfw > cc -O2 -fno-strict-aliasing -pipe -Wsystem-headers -Wall > -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c ipfw2.c > ipfw2.c: In function 'print_ip6': > ipfw2.c:1215: error: 'O_IP6_SRC_LOOKUP' undeclared (first use in this > function) > ipfw2.c:1215: error: (Each undeclared identifier is reported only once > ipfw2.c:1215: error: for each function it appears in.) > ipfw2.c:1216: error: 'O_IP6_DST_LOOKUP' undeclared (first use in this > function) > ipfw2.c:1219: warning: format '%u' expects type 'unsigned int', but > argument 2 has type 'struct in6_addr' > ipfw2.c: In function 'show_prerequisites': > ipfw2.c:1453: warning: suggest explicit braces to avoid ambiguous > 'else' > ipfw2.c: In function 'show_ipfw': > ipfw2.c:1742: error: 'O_IP6_SRC_LOOKUP' undeclared (first use in this > function) > ipfw2.c:1756: error: 'O_IP6_DST_LOOKUP' undeclared (first use in this > function) > ipfw2.c: In function 'fill_ip6': > ipfw2.c:3061: error: 'O_IP6_DST_LOOKUP' undeclared (first use in this > function) > ipfw2.c: In function 'add_srcip6': > ipfw2.c:3190: error: 'O_IP6_DST_LOOKUP' undeclared (first use in this > function) > ipfw2.c:3191: error: 'O_IP6_SRC_LOOKUP' undeclared (first use in this > function) > ipfw2.c: In function 'add_dstip6': > ipfw2.c:3211: error: 'O_IP6_DST_LOOKUP' undeclared (first use in this > function) > ipfw2.c: In function 'setup_redir_addr': > ipfw2.c:3607: warning: unused variable 'i' > ipfw2.c: In function 'setup_redir_proto': > ipfw2.c:3826: warning: unused variable 'i' > ipfw2.c: In function 'config_nat': > ipfw2.c:4013: warning: unused variable 'ip' > ipfw2.c: In function 'table_handler': > ipfw2.c:5928: error: 'ipfw_table_entry' has no member named 'proto' > ipfw2.c:5928: error: 'IPFW_IPV4' undeclared (first use in this > function) > ipfw2.c:5938: error: 'ipfw_table_entry' has no member named 'addr6' > ipfw2.c:5943: error: 'ipfw_table_entry' has no member named 'proto' > ipfw2.c:5943: error: 'IPFW_IPV6' undeclared (first use in this > function) > ipfw2.c:5944: error: 'ipfw_table_entry' has no member named 'mask6' > ipfw2.c:6005: error: 'struct _ipfw_table_entry' has no member named > 'proto' > ipfw2.c:6024: error: 'struct _ipfw_table_entry' has no member named > 'mask6' > ipfw2.c:6025: error: 'struct _ipfw_table_entry' has no member named > 'addr6' > ipfw2.c:6030: error: 'struct _ipfw_table_entry' has no member named > 'proto' > ipfw2.c: In function 'show_nat': > ipfw2.c:6046: warning: unused variable 'lav' > *** Error code 1 > > Stop in /usr/src/sbin/ipfw. > *** Error code 1 > > Steve > _______________________________________________ > freebsd-ipfw@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw > To unsubscribe, send any mail to "freebsd-ipfw- > unsubscribe@freebsd.org"