Olá a todos estou querendo utlizar o ipp2p, fiz o donwload do pacote em <a href="http://www.ipp2p.org/downloads/ipp2p-0.8.2.tar.gz">http://www.ipp2p.org/downloads/ipp2p-0.8.2.tar.gz</a>, mas quando tentei compilar ele não consegue echar o arquivo iptables.h assim eu fiz mudanças no arquivo  Makefle abaixo.<br>
<br>ifeq ($(KERNEL_SRC),)<br>$(error You need to define KERNEL_SRC)<br>endif<br><br>ifneq ($wildcard $(KERNEL_SRC)/include/linux/modversions.h),)<br>MODVERSIONS = -DMODVERSIONS<br>endif<br><br>_KVER = $(strip $(shell cat $(KERNEL_SRC)/Makefile | grep -e &#39;^VERSION&#39; | cut -d&quot;=&quot; -f2))<br>
_KPL = $(strip $(shell cat $(KERNEL_SRC)/Makefile | grep -e &#39;^PATCHLEVEL&#39; | cut -d&quot;=&quot; -f2))<br>_KSUB = $(strip $(shell cat $(KERNEL_SRC)/Makefile | grep -e &#39;^SUBLEVEL&#39; | cut -d&quot;=&quot; -f2))<br>
KERNEL_SERIES=$(_KVER).$(_KPL)<br><br>ifeq ($(KERNEL_SERIES), 2.6)<br>    TARGET=ipt_ipp2p.ko<br>else<br>    TARGET=ipt_ipp2p.o<br>endif<br><br>SED = sed<br>IPTABLES_BIN = iptables<br>IPTABLES_SRC = /usr/src/redhat/BUILD/iptables-1.3.5<br>
<br>ifndef $(IPTABLES_SRC)<br>IPTVER = \<br>    $(shell $(IPTABLES_BIN) --version | $(SED) -e &#39;s/^iptables v//&#39;)<br>IPTABLES_SRC = $(wildcard /usr/src/iptables-$(IPTVER))<br>endif<br><br>ifeq ($(IPTABLES_SRC),)<br>
$(warning You need to install iptables sources and maybe set IPTABLES_SRC)<br>endif<br><br>IPTABLES_INCLUDE = -I$(IPTABLES_SRC)/include<br><br>ifneq ($(IPTVER),)<br>    IPTABLES_VERSION = $(IPTVER)<br>else<br>    IPTABLES_VERSION = $(shell cat $(IPTABLES_SRC)/Makefile | grep -e &#39;^IPTABLES_VERSION:=&#39; | cut -d&quot;=&quot; -f2)<br>
endif<br><br>IPTABLES_OPTION = -DIPTABLES_VERSION=\&quot;$(IPTABLES_VERSION)\&quot;<br><br>CC = gcc<br>CFLAGS = -O3 -Wall<br><br><br><br>all: modules libipt_ipp2p.so<br><br>modules: $(TARGET)<br><br>ipt_ipp2p.o: ipt_ipp2p.h ipt_ipp2p.c<br>
    $(CC) $(CFLAGS) -I$(KERNEL_SRC)/include -c ipt_ipp2p.c -D__KERNEL__ -DMODULE $(MODVERSIONS)<br><br>ipt_ipp2p.ko: ipt_ipp2p.h ipt_ipp2p.c<br>    $(MAKE) -C $(KERNEL_SRC) SUBDIRS=$(PWD) modules<br><br><br>libipt_ipp2p.so: libipt_ipp2p.c ipt_ipp2p.h<br>
    $(CC) $(CFLAGS) $(IPTABLES_OPTION) $(IPTABLES_INCLUDE) -fPIC -c libipt_ipp2p.c<br>    ld -shared -o libipt_ipp2p.so libipt_ipp2p.o<br><br>clean:<br>    -rm -f *.o *.so *.ko .*.cmd *.mod.c<br>endif<br> mas no momento da compilação acontece um erro que não foi possível achar o arquivo iptables.h <br>
<br>[root@bldsrv2 2.6.18-164.el5fsl-x86_64]# locate iptables.h/usr/include/iptables.h<br>/usr/share/doc/selinux-policy-2.4.6/html/system_iptables.html<br>/usr/src/kernels/2.6.18-164.el5fsl-x86_64/include/config/ip/nf/iptables.h<br>
/usr/src/kernels/2.6.18-164.el5fsl-x86_64/include/config/ip6/nf/iptables.h<br>/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.x86_64/include/config/ip/nf/iptables.h<br>/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.x86_64/include/config/ip6/nf/iptables.h<br>
<br>Como poderei resolver esse problema..<br>um abraço<br>