Some while ago I wrote an ARP implementation in Verilog for FPGA use; a very simple state machine. Testing it (and the other TCP parts of the system) involved using the TUN/TAP devices to connect the simulation to real Ethernet and the application it was supposed to talk to.
TUN/TAP is very useful for doing nonstandard things with networks, implementing your own VPN, etc.
TUN/TAP is very useful for doing nonstandard things with networks, implementing your own VPN, etc.