diegofa
(usa Fedora)
Enviado em 30/08/2008 - 17:34h
Olá pessoal, estou tentando colocar o patch netfilter-layer7 no iptables mas estou tendo problemas ao dar um make no iptables.
A minha configuração é o seguinte:
Debian etch
Kernel: 2.6.26.3
iptables: 1.4.0
netfilter-layer7: 2.20
estou rodando os seguintes comandos para aplicar o patch:
roteador:/usr/src/iptables-1.4.0# patch -p1 < ../netfilter-layer7-v2.20/iptables-1.4-for-kernel-2.6.20forward-layer7-2.20.patch
patching file extensions/libipt_layer7.c
patching file extensions/libipt_layer7.man
patching file extensions/.layer7-test
roteador:/usr/src/iptables-1.4.0# chmod +x extensions/.layer7-test
#make KERNEL_DIR=/usr/src/linux
apos executar o make recebo o seguinte erro:
In file included from extensions/libxt_sctp.c:23:
/lib/modules/2.6.26.3-custom/build/include/linux/netfilter/xt_sctp.h:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__sctp_chunkmap_is_clear’
/lib/modules/2.6.26.3-custom/build/include/linux/netfilter/xt_sctp.h:80: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__sctp_chunkmap_is_all_set’
extensions/libxt_sctp.c: In function ‘print_chunks’:
extensions/libxt_sctp.c:416: warning: implicit declaration of function ‘__sctp_chunkmap_is_clear’
extensions/libxt_sctp.c:421: warning: implicit declaration of function ‘__sctp_chunkmap_is_all_set’
make: *** [extensions/libxt_sctp_sh.o] Error 1
eu já tentei compilar sem aplicar a pache do layer7 e apresentou o mesmo erro..
alguem saberia como solucionar esse problema?