"...composable_kernel_rocm.git" did not exist on "645fe812f65db86a9eaca7ae00e0004c1634bc0a"
Commit 431073c6 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

net_tap: add parameter for ethernet socket

parent d9f4e104
...@@ -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;
} }
......
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