Difference between revisions of "NIC Devices"

From gem5
Jump to: navigation, search
(Created page with "The gem5 simulator has two different Network Interface Cards (NICs) devices that can be used to connect together two simulation instances over a simulated ethernet link. ==Gett…")
 
Line 2: Line 2:
  
 
==Getting an list of packets on the ethernet link==
 
==Getting an list of packets on the ethernet link==
You can get a list of the packet on the ethernet link by creating a Etherdump object, setting it's file parameter, and setting the dump parameter on the EtherLink to it. This is easily accomplished with our fs.py example configuration by adding the command line option --etherdump=<filename>. The resulting file will be named <file> and be in a standard pcap format. This file can be read with [http://www.wireshark.org|wireshark] or anything else that understands the pcap format.
+
You can get a list of the packet on the ethernet link by creating a Etherdump object, setting it's file parameter, and setting the dump parameter on the EtherLink to it. This is easily accomplished with our fs.py example configuration by adding the command line option --etherdump=<filename>. The resulting file will be named <file> and be in a standard pcap format. This file can be read with [[http://www.wireshark.org|wireshark]] or anything else that understands the pcap format.

Revision as of 18:24, 19 March 2011

The gem5 simulator has two different Network Interface Cards (NICs) devices that can be used to connect together two simulation instances over a simulated ethernet link.

Getting an list of packets on the ethernet link

You can get a list of the packet on the ethernet link by creating a Etherdump object, setting it's file parameter, and setting the dump parameter on the EtherLink to it. This is easily accomplished with our fs.py example configuration by adding the command line option --etherdump=<filename>. The resulting file will be named <file> and be in a standard pcap format. This file can be read with [[1]] or anything else that understands the pcap format.