Hi everyone, I am playing around with the TAP driver for a course project. Right now I can read from the tap, encapsulate, send over link, decapsulate and write to TAP on other side.
On the sender side, all packets are redirected to the TAP device beause of the route table (if destined to another host on that network). But what I don't understand is how to make applications on the receiver side aware of the write to the TAP interface? I mean, how do a server bound to the real network card on the receiver side catch the info on the TAP? My program ends with calling WriteFile. Like this: Client program -> TAP -------------> TAP -> Server 192.168.0.2 10.8.0.2 10.8.0.1 192.168.0.3 ^ |-- (send packet to 10.8.0.1 (but destined for 192.168.03) Am I thinking totally wrong here?