Hi

I have been playing around with EtherTap.cc and am now at the point
where I can receive packets inside GEM5, if I inject them into the tap
device from outside. I am using arping to inject packets. I can't
figure out how to do the reverse, ie send packets into the tap
interface from within GEM5. I tried running ping from an m5term within
GEM5, but it doesn't seem to be sending the packets out through the
tap interface. I think the problem is that I am not connecting the
EtherTap device to the correct port of the simulated system. I see
this class member inside EtherTap :

EtherTapInt *interface;

Unfortunately, something like this (code taken from makeDualRoot in FSConfig.py)

 self.drivesys.ethertap.interface=self.testsys.tsunami.ethernet.interface
doesn't week since it says :

warn: error looking up port interface on object testsys.tsunami.ethernet
warn: error casting SimObject drivesys.ethertap to MemObject

I decided to do the above following the EtherLink example. I am not
sure how to get this to work. I think I 'll be able to close the loop
if packets from the simulated machine show up at the tap interface.

Anirudh
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to