Re: IPFW in-kernel NAT: How to compile?

2009-02-06 Thread Matt Emmerton

At 05:43 PM 2/1/2009, Dan Nelson wrote:


Do you have options LIBALIAS in your kernel config?


Nope. There was nothing that said that such an option was needed
(or even that it existed). I did find it, via a recursive grep, in
a file labeled NOTES a couple of levels up in the directory
hierarchy. I'm trying a compile now to see if that's all that's
needed to fix the problem.

It looks as if there's no longer one easy place to find out how to
configure a kernel. The options used to all be in a LINT file that
was present in the configuration directory No more.


The LINT file moved from a static file to a dynamically-generated file a 
while ago since not all options are applicable for all platforms.


A generic NOTES file (in /usr/src/sys/conf) is combined with a 
platform-specific NOTES file (in /usr/src/sys/platform/conf, where 
platform is i386, amd64, pc98, etc) to create the LINT file.


$ cd /usr/src/sys/i386/conf
$ make LINT
cat ../../conf/NOTES NOTES | sed -E -n -f ../../conf/makeLINT.sed  LINT

Regards,
--
Matt Emmerton 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


IPFW in-kernel NAT: How to compile?

2009-02-01 Thread Brett Glass

All:

I'm building a machine using FreeBSD 7.1-RELEASE, and noticed that 
there was now a kernel configuration option to enable in-kernel NAT 
in IPFW. So, starting with a pristine system, I tried to rebuild 
the kernel with this feature as I trimmed out the unneeded device 
drivers. But the build failed -- and the error messages suggest 
that the problem had to do with linking libalias into the kernel.


libalias seems to be there, so I'm not sure what's wrong. Ideas?

--Brett Glass

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: IPFW in-kernel NAT: How to compile?

2009-02-01 Thread Dan Nelson
In the last episode (Feb 01), Brett Glass said:
 I'm building a machine using FreeBSD 7.1-RELEASE, and noticed that there
 was now a kernel configuration option to enable in-kernel NAT in IPFW. 
 So, starting with a pristine system, I tried to rebuild the kernel with
 this feature as I trimmed out the unneeded device drivers.  But the build
 failed -- and the error messages suggest that the problem had to do with
 linking libalias into the kernel.
 
 libalias seems to be there, so I'm not sure what's wrong. Ideas?

Do you have options LIBALIAS in your kernel config? 

-- 
Dan Nelson
dnel...@allantgroup.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: IPFW in-kernel NAT: How to compile?

2009-02-01 Thread Brett Glass

At 05:43 PM 2/1/2009, Dan Nelson wrote:


Do you have options LIBALIAS in your kernel config?


Nope. There was nothing that said that such an option was needed 
(or even that it existed). I did find it, via a recursive grep, in 
a file labeled NOTES a couple of levels up in the directory 
hierarchy. I'm trying a compile now to see if that's all that's 
needed to fix the problem.


It looks as if there's no longer one easy place to find out how to 
configure a kernel. The options used to all be in a LINT file that 
was present in the configuration directory No more.


--Brett





___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: IPFW in-kernel NAT: How to compile?

2009-02-01 Thread Dan Nelson
In the last episode (Feb 01), Brett Glass said:
 At 05:43 PM 2/1/2009, Dan Nelson wrote:
 
 Do you have options LIBALIAS in your kernel config?
 
 Nope. There was nothing that said that such an option was needed 
 (or even that it existed). I did find it, via a recursive grep, in 
 a file labeled NOTES a couple of levels up in the directory 
 hierarchy. I'm trying a compile now to see if that's all that's 
 needed to fix the problem.
 
 It looks as if there's no longer one easy place to find out how to 
 configure a kernel. The options used to all be in a LINT file that 
 was present in the configuration directory No more.

LINT was removed back in 2000 and replaced with NOTES, since that better
describes what it's really used for.  IPFIREWALL_NAT and LIBALIAS should
additionally be documented in ipfw(4) imho.

-- 
Dan Nelson
dnel...@allantgroup.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: IPFW in-kernel NAT: How to compile?

2009-02-01 Thread Brett Glass

At 08:41 PM 2/1/2009, Dan Nelson wrote:


LINT was removed back in 2000 and replaced with NOTES, since that better
describes what it's really used for.  IPFIREWALL_NAT and LIBALIAS should
additionally be documented in ipfw(4) imho.


Indeed they should. I'm not a committer, or I'd add the information.

--Brett Glass

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org