Hi!

If you look in the history of the list you'll find a patch from Ernst. I
used that one it worked fine (actually I changed nistnet/include/kincludes.h
switching the line #include linux/config.h to #linclude inux/autoconf.h)

Nevertheless, I do know what you're talking about, because I faced this
problem in one of my first tries. Looking at my annotations I found
something but I don't have the source where I got this from (maybe you can
google it). Here it goes:
go to nistnet/kernel/nistnet_table.c

change
skb->nh.iph      to      ip_hdr(skb)
skb->nh.raw     to      skb->network_header
skb->h.raw       to      skb->transport_header

It seems that linux kernel people realized they were not using intuitive
name for things...

Well, if you make it ok, you'll probably need to make the famous steps below
before running ./LoadNistNet

mknod /dev/hitbox c 62 0
mknod /dev/nistnet c 62 1
chown root /dev/hitbox
chown root /dev/nistnet
mknod /dev/mungebox c 63 0
chown root /dev/mungebox
mknod /dev/spybox c 64 0
chown root /dev/spybox

I hope I'll help you!

gabriel

On Jan 25, 2008 4:09 AM, Ferran Valldosera <[EMAIL PROTECTED]> wrote:

> When I run make I get an error related to sk_buff, which seems to have
> changed in some previous linux version. I've tried with the patch in
> http://www.dps.uibk.ac.at/~sven/archive/nistnet-2.0.12c-knistnet.c.patch-v2.6.17.gz<http://www.dps.uibk.ac.at/%7Esven/archive/nistnet-2.0.12c-knistnet.c.patch-v2.6.17.gz>but
>  it does not resolve the problem.
> Thanks for your help
>
> [EMAIL PROTECTED]:~/nistnet/nistnet-3.0a$ make
> set -e; for i in math lib cli monitor kernel man; do make -C $i ; done
> make[1]: Entering directory `/home/ferran/nistnet/nistnet-3.0a/math'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/ferran/nistnet/nistnet-3.0a/math'
> make[1]: Entering directory `/home/ferran/nistnet/nistnet-3.0a/lib'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/ferran/nistnet/nistnet-3.0a/lib'
> make[1]: Entering directory `/home/ferran/nistnet/nistnet-3.0a/cli'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/ferran/nistnet/nistnet-3.0a/cli'
> make[1]: Entering directory `/home/ferran/nistnet/nistnet-3.0a/monitor'
> making all in ./TextField-1.01...
> make[2]: Entering directory `/home/ferran/nistnet/nistnet-3.0a
> /monitor/TextField-1.01'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/home/ferran/nistnet/nistnet-3.0a
> /monitor/TextField-1.01'
> making all in ./Frame-1.0...
> make[2]: Entering directory `/home/ferran/nistnet/nistnet-3.0a
> /monitor/Frame-1.0'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/home/ferran/nistnet/nistnet-3.0a
> /monitor/Frame-1.0'
> make[1]: Leaving directory `/home/ferran/nistnet/nistnet-3.0a/monitor'
> make[1]: Entering directory `/home/ferran/nistnet/nistnet-3.0a/kernel'
> make -C /lib/modules/2.6.22-14-generic/build
> M=/home/ferran/nistnet/nistnet-3.0a/kernel V=1
> make[2]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
> test -e include/linux/autoconf.h -a -e include/config/auto.conf ||
> (            \
>         echo;                                                           \
>         echo "  ERROR: Kernel configuration is invalid.";               \
>         echo "         include/linux/autoconf.h or
> include/config/auto.conf are missing.";      \
>         echo "         Run 'make oldconfig && make prepare' on kernel src
> to fix it.";  \
>         echo;                                                           \
>         /bin/false)
> mkdir -p /home/ferran/nistnet/nistnet-3.0a/kernel/.tmp_versions
> rm -f /home/ferran/nistnet/nistnet-3.0a/kernel/.tmp_versions/*
> make -f scripts/Makefile.build obj=/home/ferran/nistnet/nistnet-3.0a
> /kernel
>   gcc -m32 -Wp,-MD,/home/ferran/nistnet/nistnet-3.0a/kernel/.knistnet.o.d
> -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.3/include -D__KERNEL__
> -Iinclude  -include include/linux/autoconf.h -Wall -Wundef
> -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2
> -pipe -msoft-float -mregparm=3 -freg-struct-return
> -mpreferred-stack-boundary=2  -march=i586 -mtune=generic -ffreestanding
> -maccumulate-outgoing-args   -Iinclude/asm-i386/mach-default
> -fomit-frame-pointer -g  -fno-stack-protector -Wdeclaration-after-statement
> -Wno-pointer-sign -D__KERNEL__ -fno-common -I. -I../include
> -DDEVHITBOX=\"/dev/hitbox\" -DHITMAJOR=62         -DHITMINOR=0
> -DDEVNISTNET=\"/dev/nistnet\" -DNISTNETMAJOR=62  -DNISTNETMINOR=1
> -DDEVMUNGEBOX=\"/dev/mungebox\" -DMUNGEMAJOR=63 -DDEVSPYBOX=\"/dev/spybox\"
> -DSPYMAJOR=64 -DCONFIG_ECN -DCONFIG_COS -DCONFIG_DELAYSTART
> -DCONFIG_RTC_AGGRESSIVE -fno-common -I. -I../include
> -DDEVHITBOX=\"/dev/hitbox\" -DHITMAJOR=62     -DHITMINOR=0
> -DDEVNISTNET=\"/dev/nistnet\" -DNISTNETMAJOR=62  -DNISTNETMINOR=1
> -DDEVMUNGEBOX=\"/dev/mungebox\" -DMUNGEMAJOR=63 -DDEVSPYBOX=\"/dev/spybox\"
> -DSPYMAJOR=64 -DCONFIG_ECN -DCONFIG_COS -DCONFIG_DELAYSTART
> -DCONFIG_RTC_AGGRESSIVE -fno-common
> -I/lib/modules/2.6.22-14-generic/build/include
> -I/home/ferran/nistnet/nistnet-3.0a/kernel -I/home/ferran/nistnet/nistnet-
> 3.0a/kernel/../include -DDEVHITBOX=\"/dev/hitbox\" -DHITMAJOR=62
> -DHITMINOR=0 -DDEVNISTNET=\"/dev/nistnet\" -DNISTNETMAJOR=62
> -DNISTNETMINOR=1 -DDEVMUNGEBOX=\"/dev/mungebox\" -DMUNGEMAJOR=63
> -DDEVSPYBOX=\"/dev/spybox\" -DSPYMAJOR=64 -DCONFIG_ECN -DCONFIG_COS
> -DCONFIG_DELAYSTART -DCONFIG_RTC_AGGRESSIVE -fno-common -I. -I../include
> -DDEVHITBOX=\"/dev/hitbox\" -DHITMAJOR=62     -DHITMINOR=0
> -DDEVNISTNET=\"/dev/nistnet\" -DNISTNETMAJOR=62  -DNISTNETMINOR=1
> -DDEVMUNGEBOX=\"/dev/mungebox\" -DMUNGEMAJOR=63 -DDEVSPYBOX=\"/dev/spybox\"
> -DSPYMAJOR=64 -DCONFIG_ECN -DCONFIG_COS -DCONFIG_DELAYSTART
> -DCONFIG_RTC_AGGRESSIVE -fno-common -I. -I../include
> -DDEVHITBOX=\"/dev/hitbox\" -DHITMAJOR=62  -DHITMINOR=0
> -DDEVNISTNET=\"/dev/nistnet\" -DNISTNETMAJOR=62  -DNISTNETMINOR=1
> -DDEVMUNGEBOX=\"/dev/mungebox\" -DMUNGEMAJOR=63 -DDEVSPYBOX=\"/dev/spybox\"
> -DSPYMAJOR=64 -DCONFIG_ECN -DCONFIG_COS -DCONFIG_DELAYSTART
> -DCONFIG_RTC_AGGRESSIVE -fno-common
> -I/lib/modules/2.6.22-14-generic/build/include
> -I/home/ferran/nistnet/nistnet-3.0a/kernel -I/home/ferran/nistnet/nistnet-
> 3.0a/kernel/../include -DDEVHITBOX=\"/dev/hitbox\" -DHITMAJOR=62
> -DHITMINOR=0 -DDEVNISTNET=\"/dev/nistnet\" -DNISTNETMAJOR=62
> -DNISTNETMINOR=1 -DDEVMUNGEBOX=\"/dev/mungebox\" -DMUNGEMAJOR=63
> -DDEVSPYBOX=\"/dev/spybox\" -DSPYMAJOR=64 -DCONFIG_ECN -DCONFIG_COS
> -DCONFIG_DELAYSTART -DCONFIG_RTC_AGGRESSIVE -fno-common  -DMODULE
> -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(knistnet)"
> -D"KBUILD_MODNAME=KBUILD_STR(nistnet)" -c -o /home/ferran/nistnet/nistnet-
> 3.0a/kernel/.tmp_knistnet.o /home/ferran/nistnet/nistnet-3.0a
> /kernel/knistnet.c
> /home/ferran/nistnet/nistnet-3.0a/kernel/knistnet.c: In function
> 'ecn_skb':
> /home/ferran/nistnet/nistnet-3.0a/kernel/knistnet.c:713: error: 'struct
> sk_buff' has no member named 'h'
> make[3]: *** [/home/ferran/nistnet/nistnet-3.0a/kernel/knistnet.o] Error 1
> make[2]: *** [_module_/home/ferran/nistnet/nistnet-3.0a/kernel] Error 2
> make[2]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/ferran/nistnet/nistnet-3.0a/kernel'
> make: *** [sub_dirs] Error 2
>
>
> ------------------------------
>
> ¿Con Mascota por primera vez? - Sé un mejor Amigo
> Entra en Yahoo! 
> Respuestas<http://es.rd.yahoo.com/evt:51361/*http://es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=XXXXXXXX>
> .
>
> _______________________________________________
> nistnet mailing list
> nistnet@antd.nist.gov
> http://www-x.antd.nist.gov/mailman/listinfo/nistnet
>
>
_______________________________________________
nistnet mailing list
nistnet@antd.nist.gov
http://www-x.antd.nist.gov/mailman/listinfo/nistnet

Reply via email to