How can I simulate some incoming traffic on a specific software interface? The reason for this need is that we have a couple of software interfaces between Ether level and IP level, which will parse our own L2.5 headers along the network stack, i.e.
eth header -> virt_dev1 -> virt_dev2 -> IP -> TCP
I was looking at TAP, which looks like it can help. But I do not understand how to chain this TAP interface to our own software interfaces so the packets will go through the expected network stack? Maybe my understanding of TAP is not correct?
Thanks,