"driver/include/device.hpp" did not exist on "67c6f73ffe0dc06659757c8e28901187394de77b"
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[])
{
int sync;
if (argc != 2) {
fprintf(stderr, "Usage: net_tap TAP_DEVICE_NAME\n");
if (argc != 3) {
fprintf(stderr, "Usage: net_tap TAP_DEVICE_NAME SOCKET\n");
return EXIT_FAILURE;
}
......@@ -139,7 +139,7 @@ int main(int argc, char *argv[])
}
sync = 0;
if (netsim_init(&nsif, "/tmp/cosim-eth", &sync) != 0) {
if (netsim_init(&nsif, argv[2], &sync) != 0) {
close(tap_fd);
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