This guide explains how to compile, insert, and use the Netstats kernel module to check network statistics.
- Compiling the Module
make
- Insert the module into the kernel
sudo insmod netstats.ko
- Check the network statistics
cat /proc/netstats
- Unload the module
sudo rmmod netstats
- Clean up the compiled files
make clean