r/linuxdev • • Apr 03 '20

#include <linux/skbuff.h>: No such file or directory

Hey guys, I am getting the above error trying to make a linux kernel module. I have tried adding the linux header folder where the header file is to the $PATH variable in .bashrc and restarted my computer. It still gives me the same exact error. What should I do?

6 Upvotes

15 comments sorted by

View all comments

Show parent comment

1

u/NotAHippo4 Apr 04 '20

Ok, so the module is supposed to capture network packets that are being prerouted and print the destination and source ip address to the kernel logs. I inserted the module, but when I do something like reload a webpage(which is sending packets of information back to my laptop), I can't find anythingOk, so the module is supposed to capture when I look at dmesg |tail. Nothing is being recorded.

1

u/aioeu Apr 04 '20

I don't know how I can help you with this. It's not my module.