1
0
Fork 0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-06-09 09:26:09 +02:00

Change interface name to fake in plugin runner

This commit is contained in:
Pavel Odintsov 2015-06-28 15:37:54 -04:00
parent 911a3ece19
commit cbe749b40a
3 changed files with 2 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -67,7 +67,8 @@ int main(int argc, char* argv[]) {
}
// Required by Netmap and PF_RING plugins
configuration_map["interfaces"] = "eth0";
// We use fake interface name here because netmap could make server unreachable :)
configuration_map["interfaces"] = "ethXXX";
if (strstr(argv[1], "sflow") != NULL) {
std::cout << "Starting sflow" << std::endl;