Commit 3fa7661e authored by Jialin Li's avatar Jialin Li
Browse files

experiments: add pcap support to net_wire

parent 145ad9ea
......@@ -239,10 +239,13 @@ class I40eNIC(NICSim):
class WireNet(NetSim):
def run_cmd(self, env):
assert len(self.nics) == 2
return '%s/sims/net/wire/net_wire %s %s %d %d %d' % \
cmd = '%s/sims/net/wire/net_wire %s %s %d %d %d' % \
(env.repodir, env.nic_eth_path(self.nics[0]),
env.nic_eth_path(self.nics[1]),
self.sync_mode, self.sync_period, self.eth_latency)
if len(env.pcap_file) > 0:
cmd += ' ' + env.pcap_file
return cmd
class SwitchNet(NetSim):
def run_cmd(self, env):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment