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
431073c6
"...composable_kernel_rocm.git" did not exist on "645fe812f65db86a9eaca7ae00e0004c1634bc0a"
Commit
431073c6
authored
Sep 08, 2020
by
Antoine Kaufmann
Browse files
net_tap: add parameter for ethernet socket
parent
d9f4e104
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
net_tap/net_tap.c
net_tap/net_tap.c
+3
-3
No files found.
net_tap/net_tap.c
View file @
431073c6
...
@@ -129,8 +129,8 @@ int main(int argc, char *argv[])
...
@@ -129,8 +129,8 @@ int main(int argc, char *argv[])
{
{
int
sync
;
int
sync
;
if
(
argc
!=
2
)
{
if
(
argc
!=
3
)
{
fprintf
(
stderr
,
"Usage: net_tap TAP_DEVICE_NAME
\n
"
);
fprintf
(
stderr
,
"Usage: net_tap TAP_DEVICE_NAME
SOCKET
\n
"
);
return
EXIT_FAILURE
;
return
EXIT_FAILURE
;
}
}
...
@@ -139,7 +139,7 @@ int main(int argc, char *argv[])
...
@@ -139,7 +139,7 @@ int main(int argc, char *argv[])
}
}
sync
=
0
;
sync
=
0
;
if
(
netsim_init
(
&
nsif
,
"/tmp/cosim-eth"
,
&
sync
)
!=
0
)
{
if
(
netsim_init
(
&
nsif
,
argv
[
2
]
,
&
sync
)
!=
0
)
{
close
(
tap_fd
);
close
(
tap_fd
);
return
-
1
;
return
-
1
;
}
}
...
...
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