> 1. I can't figure out where the tap device is actually created from > the source of ethertap.cc. I expect to see something like > "open(/dev/net/tun)" which opens a tap device.
My memory is super fuzzy, but basically the way it worked is that ethertap listened on a tcp port and the thing that connected to the tun device just opened the tun device and sent the packets over the tcp connection to the ethertap device. I'm pretty sure that you should be able to use socat to do that job as I have no idea what happened to the original code for that bit. > 2. How do I actually use ethertap.cc in a simulation script ? Is there > an example that runs (even if functionally incorrect) ? Ethernet devices have port interfaces like memory devices do. You can just connect an ethertap device to an ethernet interface the way you'd connect an etherlink. _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
