Packet Generator (USE WITH CAUTION)

modulename: pktgen.ko

configname: CONFIG_NET_PKTGEN

Linux Kernel Configuration
└─>Networking support
└─>Networking options
└─>Network testing
└─>Packet Generator (USE WITH CAUTION)
In linux kernel since version 2.6.12  
This module will inject preconfigured packets, at a configurable
rate, out of a given interface. It is used for network interface
stress testing and performance analysis. If you don't understand
what was just said, you don't need it: say N.

Documentation on how to use the packet generator can be found
at <file:Documentation/networking/pktgen.rst>.

To compile this code as a module, choose M here: the
module will be called pktgen.

source code: