$ vagrant up
$ vagrant ssh
$ cd /vagrant
$ make
$ make insmod
Check that the module successfully loaded
$ dmesg # look at 'network_driver' messages
Or
$ lsmod | grep driver
This module:
- captures all UDP traffic from all interfaces and prints source and destination ports. To test it, try:
$ nc -u localhost 32 < ${FILE_WITH_DATAGRAM_CONTENT} $ dmesg
Note: this module handle only
32
destination port. All other ports will be ignored. (SeeDRV_TARGET_PORT
define) - collects statistics. Try
ifconfig -a
- rx packets - successfully received packets
- rx dropped - UDP packets with port != 32
- rx errors - not UDP/IP packets