Hello NTOP list, I'm not a programmer, but I managed to stumble upon what appears to be a missing header include in pf_ring.c.
I pulled the latest SVN and it was failing to compile the kernel module, throwing this error: $ make make -C /lib/modules/2.6.28-17-generic/build SUBDIRS=/usr/src/apps/PF_RING/kernel EXTRA_CFLAGS='-I/usr/src/apps/PF_RING/kernel -DSVN_REV="\"4110\""' modules make[1]: Entering directory `/usr/src/linux-headers-2.6.28-17-generic' CC [M] /usr/src/apps/PF_RING/kernel/pf_ring.o /usr/src/apps/PF_RING/kernel/pf_ring.c: In function ‘hw_filtering_rule’: /usr/src/apps/PF_RING/kernel/pf_ring.c:2194: error: dereferencing pointer to incomplete type /usr/src/apps/PF_RING/kernel/pf_ring.c:2196: error: dereferencing pointer to incomplete type /usr/src/apps/PF_RING/kernel/pf_ring.c:2202: error: dereferencing pointer to incomplete type make[2]: *** [/usr/src/apps/PF_RING/kernel/pf_ring.o] Error 1 make[1]: *** [_module_/usr/src/apps/PF_RING/kernel] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-17-generic' make: *** [all] Error 2 I poked around line 2194 and 2196 and they both referenced ethtool. I added this to the end of the include section: (about line 75) #include <linux/ethtool.h> And now it compiles. I'm still a goodly distance from actually using pf_ring compiled tcpdump/ntop but at least I have a kernel module. I hope this helps someone! Paul
_______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop
