Hello,

I am trying to convince the OpenWRT build process to build
nf_nat_ipv6.ko (which, by analogy with the nf_nat_ipv4.ko, I would
expect to contain the new Kernel 3.7+ IPv6 nat chain and MASQUERADE
target). I'm starting with r37855, and trying to use this patch:

https://dev.openwrt.org/attachment/ticket/13446/netfilter.3.diff

However, just making these makefile changes does not result in the
module building. I think this is because the makefile is instructing
the build system to only build if a certain menuconfig option is
selected, and that option doesn't exist to select. If I try changing:

$(eval $(if $(NF_KMOD),$(call nf_add,IPT_NAT,CONFIG_NF_NAT_IPV6,
$(P_V6)nf_nat_ipv6 $(P_V6)ip6table_nat, ge 3.8.0),))

to:

$(eval $(if $(NF_KMOD),$(call nf_add,IPT_NAT,CONFIG_NF_NAT,
$(P_V6)nf_nat_ipv6 $(P_V6)ip6table_nat, ge 3.8.0),))

it looks like it makes a bit more progress, but the build dies with:

ERROR: module 
'/home/anovak/workspace/openwrt/build_dir/target-i386_uClibc-0.9.33.2/linux-x86_generic/linux-3.8.13/net/ipv6/netfilter/nf_nat_ipv6.ko'
is missing.
make[3]: *** 
[/home/anovak/workspace/openwrt/bin/x86/packages/kmod-ipt-nat_3.8.13-1_x86.ipk]
Error 1

Does anyone who speaks Kernel Makefile want to tell me what exactly
that patch says to do and why the netfilter ipv6 NAT stuff isn't
building? Where can I find the Makefile that actually controls the
compilation of C source files into netfilter .ko files, and determines
what C code builds into what .ko file? Is the source for this feature
just missing from the openwrt tree?

Thanks,
-Adam Novak
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to