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
a434a9b3
Commit
a434a9b3
authored
Feb 15, 2021
by
Antoine Kaufmann
Browse files
net_wire,lib/nicbm: fix argument parsing
parent
0ef964de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/simbricks/nicbm/nicbm.cc
lib/simbricks/nicbm/nicbm.cc
+1
-1
sims/net/wire/net_wire.c
sims/net/wire/net_wire.c
+1
-1
No files found.
lib/simbricks/nicbm/nicbm.cc
View file @
a434a9b3
...
...
@@ -400,7 +400,7 @@ int Runner::RunMain(int argc, char *argv[]) {
uint64_t
eth_latency
=
500
*
1000ULL
;
int
sync_mode
=
SIMBRICKS_PROTO_SYNC_SIMBRICKS
;
if
(
argc
<
4
&&
argc
>
9
)
{
if
(
argc
<
4
||
argc
>
9
)
{
fprintf
(
stderr
,
"Usage: corundum_bm PCI-SOCKET ETH-SOCKET "
"SHM [SYNC-MODE] [START-TICK] [SYNC-PERIOD] [PCI-LATENCY] "
...
...
sims/net/wire/net_wire.c
View file @
a434a9b3
...
...
@@ -109,7 +109,7 @@ int main(int argc, char *argv[]) {
pcap_t
*
pc
=
NULL
;
int
sync_mode
=
SIMBRICKS_PROTO_SYNC_SIMBRICKS
;
if
(
argc
<
3
&&
argc
>
7
)
{
if
(
argc
<
3
||
argc
>
7
)
{
fprintf
(
stderr
,
"Usage: net_wire SOCKET-A SOCKET-B [SYNC-MODE] "
"[SYNC-PERIOD] [ETH-LATENCY] [PCAP-FILE]
\n
"
);
...
...
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