summaryrefslogtreecommitdiff
path: root/netcon/NetconEthernetTap.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-12-15 15:35:21 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-12-15 15:35:21 -0800
commit6bc93d2050ca89b7d464fa7d5a8779ba7c534a36 (patch)
tree3747f68423280b642cdc98282c7808e3cd73d8ec /netcon/NetconEthernetTap.cpp
parent37a7e9e2759e2e63ff72c66993986f6b60dcad55 (diff)
downloadinfinitytier-6bc93d2050ca89b7d464fa7d5a8779ba7c534a36.tar.gz
infinitytier-6bc93d2050ca89b7d464fa7d5a8779ba7c534a36.zip
Docs, and change ZT_NC_NWID to ZT_NC_NETWORK and use full path in local ZT home dir to enable multiple instances.
Diffstat (limited to 'netcon/NetconEthernetTap.cpp')
-rw-r--r--netcon/NetconEthernetTap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/netcon/NetconEthernetTap.cpp b/netcon/NetconEthernetTap.cpp
index 7fd8150f..47c38617 100644
--- a/netcon/NetconEthernetTap.cpp
+++ b/netcon/NetconEthernetTap.cpp
@@ -170,7 +170,7 @@ NetconEthernetTap::NetconEthernetTap(
{
char sockPath[4096],lwipPath[4096];
rpc_counter = -1;
- Utils::snprintf(sockPath,sizeof(sockPath),"/tmp/.ztnc_%.16llx",_nwid,ZT_PATH_SEPARATOR_S,(unsigned long long)nwid);
+ Utils::snprintf(sockPath,sizeof(sockPath),"%s%snc_%.16llx",homePath,ZT_PATH_SEPARATOR_S,_nwid,ZT_PATH_SEPARATOR_S,(unsigned long long)nwid);
_dev = sockPath; // in netcon mode, set device to be just the network ID
Utils::snprintf(lwipPath,sizeof(lwipPath),"%s%sliblwip.so",homePath,ZT_PATH_SEPARATOR_S);