[pso] [Tema5][Lin]Inet vs IP

Horatiu Popescu hory0603 at gmail.com
Tue May 17 18:12:54 EEST 2011


Constantele NF_IP_LOCAL_* se pot folosi doar din userspace. Pentru kernel
space sunt utilizate NF_INET_LOCAL_* (au aceleasi valori)
Vezi la [1] si la [2] define-urile aferente.

[1] http://lxr.linux.no/#linux+v2.6.35/include/linux/netfilter.h
[2] http://lxr.linux.no/#linux+v2.6.35/include/linux/netfilter_ipv4.h

On Tue, May 17, 2011 at 6:06 PM, Alexandru Stefan <
alexandru.stefan at cti.pub.ro> wrote:

> Salut,
>
> In timp ce scriam la tema am dat peste urmatoarea problema: ma gandeam sa
> inregistrez hook-ul la nivelul NF_IP_LOCAL, dar am dat peste urmatoarea
> problema
> la compilare:
>
> "
> root at spook:/home/student/tema5# make
> make -C /lib/modules/`uname -r`/build M=`pwd`
> make[1]: Entering directory `/usr/src/linux-headers-2.6.35.10-so-so2'
>  CC [M]  /home/student/tema5/ipfirewall.o
> /home/student/tema5/ipfirewall.c:49: error: ‘NF_IP_LOCAL_IN’ undeclared
> here
> (not
> in a function)
> /home/student/tema5/ipfirewall.c:57: error: ‘NF_IP_LOCAL_OUT’ undeclared
> here
> (not in a function)
> make[2]: *** [/home/student/tema5/ipfirewall.o] Error 1
> make[1]: *** [_module_/home/student/tema5] Error 2
> make[1]: Leaving directory `/usr/src/linux-headers-2.6.35.10-so-so2'
> make: *** [kbuild] Error 2
> "
>
> Sapand un pic, am descoperit ca problema ar trebui sa fie la nivelul
> makefile-
> ului.
>
> Ideea e ca nu am inteles de ce si in laborator s-a folosit un hook la
> nivelul
> INET in loc de IP.
>
> Mersi!
> Alex Stefan
>
>
> _______________________________________________
> http://elf.cs.pub.ro/so2/wiki/resurse/lista-discutii
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/pso/attachments/20110517/24c11cc6/attachment.htm>


More information about the pso mailing list