Subject: Re: Compiling FROX under NetBSD-2.0
To: Jeremy C. Reed <reed@reedmedia.net>
From: Joe Lim Seng Chor <Joe.Lim@sit.edu.my>
List: netbsd-users
Date: 08/17/2004 22:26:59
On 16 Aug 2004 at 9:52, Jeremy C. Reed wrote:

> On Mon, 16 Aug 2004, Joe Lim wrote:
> 
> > I got error when I was compiling frox 0.7.15 under NetBSD 2.0 (with
> > latest cvs checkout).
> 
> What is frox?
> 
> > bsd.c:50: error: `IPL_NAT' undeclared (first use in this function)
> 
> Maybe needs to include netinet/ip_fil.h ?
> 
>  Jeremy C. Reed
> 
>  	  	 	 BSD News, BSD tutorials, BSD links
> 	  	 	 http://www.bsdnewsletter.com/
> 

I got the solution from frox-users mailling list. Check the patch below. It seems 
IPL_NAME need to be used instead of IPL_NAT. 



--- src/bsd.c.orig      Mon Aug 16 13:14:06 2004
+++ src/bsd.c   Mon Aug 16 13:20:58 2004
@@ -47,7 +47,7 @@
 int os_init(void)
 {
 #ifdef IPFILTER
-       natfd = open(IPL_NAT, O_RDONLY, 0);
+       natfd = open(IPL_NAME, O_RDONLY, 0);
        if(natfd < 0)
                write_log(ERROR, "Unable to initialise IPFilter");
 #endif




____________________________________________________

Email Disclaimer :
This electronic transmission and any attachment(s) to it contain 
confidential information and are priviledged or otherwise protected 
from disclosure and are intended solely for the use of the 
addressee(s). If you are not the intended recipient or not the person 
responsible for delivering the electronic transmission to the intended 
recipient or you have received it in error, please be advised that you 
are to notify the Sender immediately by reply through electronic 
transmission, telephone or fax and thereafter delete this 
electronically transmitted message and any attachment to it from your
system. Please do not copy or attempt to copy or use or attempt to 
use it for any purpose, to disclose or attempt to disclose its contents 
to any other person. If you do so, you may be in breach of the 
applicable law. 

Thank you for your cooperation.
____________________________________________________

Sepang Institute of Technology
Level 5, Klang Parade,
2112 Jalan Meru,
41050 Klang,
Selangor Darul Ehsan
Website:http://www.sit.edu.my/

Programme Enquiry: Enquiry@sit.edu.my
Student Services: Student.Services@sit.edu.my
Admission Office: Admission.Office@sit.edu.my
____________________________________________________