summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2013-08-24 13:21:51 -0400
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2013-08-24 13:21:51 -0400
commit8637d06e0e97c011932b41053579891e4ffa907d (patch)
tree28f32b0c884e26fd48bca41cffb3ae6a2efc1f3a
parentdf98e5a635eb661063d14f7a239774e02db60dd3 (diff)
downloadinfinitytier-8637d06e0e97c011932b41053579891e4ffa907d.tar.gz
infinitytier-8637d06e0e97c011932b41053579891e4ffa907d.zip
It builds and it installs! Well, except for not being digitally signed. :P
-rw-r--r--node/EthernetTap.cpp1
-rw-r--r--vsprojects/TapDriver/ztTap100.inf5
2 files changed, 5 insertions, 1 deletions
diff --git a/node/EthernetTap.cpp b/node/EthernetTap.cpp
index 9e07d160..09af7179 100644
--- a/node/EthernetTap.cpp
+++ b/node/EthernetTap.cpp
@@ -832,6 +832,7 @@ EthernetTap::EthernetTap(
char tmps[4096];
sprintf_s(tmps,"%.2X-%.2X-%.2X-%.2X-%.2X-%.2X",(unsigned int)mac.data[0],(unsigned int)mac.data[1],(unsigned int)mac.data[2],(unsigned int)mac.data[3],(unsigned int)mac.data[4],(unsigned int)mac.data[5]);
RegSetKeyValueA(nwAdapters,mySubkeyName.c_str(),"NetworkAddress",REG_SZ,tmps,strlen(tmps)+1);
+ RegSetKeyValueA(nwAdapters,mySubkeyName.c_str(),"MAC",REG_SZ,tmps,strlen(tmps)+1);
DWORD tmp = mtu;
RegSetKeyValueA(nwAdapters,mySubkeyName.c_str(),"MTU",REG_DWORD,(LPCVOID)&tmp,sizeof(tmp));
tmp = 0;
diff --git a/vsprojects/TapDriver/ztTap100.inf b/vsprojects/TapDriver/ztTap100.inf
index 79efd4e3..cf31e9ff 100644
--- a/vsprojects/TapDriver/ztTap100.inf
+++ b/vsprojects/TapDriver/ztTap100.inf
@@ -13,6 +13,9 @@ Provider = "ZeroTier Networks"
[Manufacturer]
%Provider%=ztTap100,NTamd64
+[ztTap100]
+%DeviceDescription%=ztTap100.ndi,ztTap100
+
[ztTap100.NTamd64]
%DeviceDescription%=ztTap100.ndi,ztTap100
@@ -56,7 +59,7 @@ HKR, Ndi\params\AllowNonAdmin, Optional, 0, "0"
HKR, Ndi\params\AllowNonAdmin\enum, "0", 0, "Not Allowed"
HKR, Ndi\params\AllowNonAdmin\enum, "1", 0, "Allowed"
-[tap0901.service]
+[ztTap100.service]
DisplayName = %DeviceDescription%
ServiceType = 1
StartType = 3