Re: packet dropper module...problem includign skbuff.h



I myself got the solution for this problem.

i have missed flags for compiling which created the headache.

Its best to use Make for this program.


It goes like this.

TARGET := pktdrop
WARN := -W -Wall -Wstrict-prototypes -Wmissing-prototypes
INCLUDE := -isystem /lib/modules/`uname -r`/build/include
CFLAGS := -O2 -DMODULE -D__KERNEL__ ${WARN} ${INCLUDE}
CC := gcc

${TARGET}.o: ${TARGET}.c

..PHONY: clean

clean:
rm -rf ${TARGET}.o



But as i have used simple compilation iike gcc - in the command line
itself with limited flags.
it created problems.....


HAPPY CODING.

SaranJothy

.



Relevant Pages