On 2010-03-10, Andris K?d?r <kadarand...@gmail.com> wrote: > Hello, > > I try to build an ipv6-only network behind an OpenBSD box and > I am having problems with faith. > > 'ifconfig -C' shows that there is no faith support in the 4.6. release > kernel. So I try to compile a kernel with faith support enabled: > > pseudo-device faith 1 > > But the kernel does not compile. I get: > > ../../../../netinet/tcp_input.c: In function `tcp6_input': > ../../../../netinet/tcp_input.c:337: error: `IFT_FAITH' undeclared > (first use in this function) > ../../../../netinet/tcp_input.c:337: error: (Each undeclared > identifier is reported only once > ../../../../netinet/tcp_input.c:337: error: for each function it appears in.) > *** Error code 1 > > Please help.
this diff lets the kernel build; but also read http://undeadly.org/cgi?action=article&sid=20080724184757 for a nice way to handle this with a standard kernel. Index: tcp_input.c =================================================================== RCS file: /cvs/src/sys/netinet/tcp_input.c,v retrieving revision 1.231 diff -u -p -r1.231 tcp_input.c --- tcp_input.c 15 Jan 2010 18:20:23 -0000 1.231 +++ tcp_input.c 10 Mar 2010 19:34:13 -0000 @@ -96,6 +96,9 @@ #include <netinet/tcp_debug.h> #include "faith.h" +#if NFAITH > 0 +#include <net/if_types.h> +#endif #include "pf.h" #if NPF > 0 Index: udp_usrreq.c =================================================================== RCS file: /cvs/src/sys/netinet/udp_usrreq.c,v retrieving revision 1.132 diff -u -p -r1.132 udp_usrreq.c --- udp_usrreq.c 13 Nov 2009 20:54:05 -0000 1.132 +++ udp_usrreq.c 10 Mar 2010 19:34:13 -0000 @@ -104,6 +104,9 @@ extern int ip6_defhlim; #endif /* INET6 */ #include "faith.h" +#if NFAITH > 0 +#include <net/if_types.h> +#endif #include "pf.h" #if NPF > 0