Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
3fa7661e
"...git@developer.sourcefind.cn:cnjsdfcy/simbricks.git" did not exist on "0ffe3dc10902984922e2b758ad878fbdaeba29d4"
Commit
3fa7661e
authored
Apr 30, 2021
by
Jialin Li
Browse files
experiments: add pcap support to net_wire
parent
145ad9ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
experiments/simbricks/simulators.py
experiments/simbricks/simulators.py
+4
-1
No files found.
experiments/simbricks/simulators.py
View file @
3fa7661e
...
@@ -239,10 +239,13 @@ class I40eNIC(NICSim):
...
@@ -239,10 +239,13 @@ class I40eNIC(NICSim):
class
WireNet
(
NetSim
):
class
WireNet
(
NetSim
):
def
run_cmd
(
self
,
env
):
def
run_cmd
(
self
,
env
):
assert
len
(
self
.
nics
)
==
2
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
.
repodir
,
env
.
nic_eth_path
(
self
.
nics
[
0
]),
env
.
nic_eth_path
(
self
.
nics
[
1
]),
env
.
nic_eth_path
(
self
.
nics
[
1
]),
self
.
sync_mode
,
self
.
sync_period
,
self
.
eth_latency
)
self
.
sync_mode
,
self
.
sync_period
,
self
.
eth_latency
)
if
len
(
env
.
pcap_file
)
>
0
:
cmd
+=
' '
+
env
.
pcap_file
return
cmd
class
SwitchNet
(
NetSim
):
class
SwitchNet
(
NetSim
):
def
run_cmd
(
self
,
env
):
def
run_cmd
(
self
,
env
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment