The cause of the problem was a missing header file (ethernet.h) in /usr/src/linux/include/net. I found the file in /usr/src/linux/include/config/net and copied it, which solved the problem. Why the file wasn't in the correct directory? Two possible explanations : - iptables-1.2.6a searches for the file in the wrong path - the tree of kernel-2.4.18 placed the file in the wrong directory
So, I continued patching the kernel and moved on compiling using the following command : make INCDIR=/usr/include KERNEL_DIR=/usr/src/linux The compilation process stopped with the following error : In file included from extensions/libipt_mac.c:13: /usr/src/linux/include/linux/netfilter_ipv4/ipt_mac.h:5: `ETH_ALEN� undeclared here (not in a function) ... make: *** [extensions/libipt_mac_sh.o] Error 1 (Environment : kernel-2.4.18 / RH 7.2) Any help will be highly appreciated! Bart.
