I am trying to send packets from one machine to another using tcpreplay and tcpdump.
If I write a driver for capturing packets directly from the NIC, which path will be followed?
1) N/w packet —-> NIC card —-> app (no role of kernel)
2) N/w packet —–> Kernel —–> NIC card —> app
Thanks
It’s usually in this order:
Then there are deviations from this model, but those are special cases for particular hardware/OS. One vendor that does user-land-direct-to-hardware stuff is Solarflare, there are others.