zttap300.inf 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. ;
  2. ; ZeroTier One Virtual Network Port NDIS6 Driver
  3. ;
  4. ; Based on the OpenVPN tap-windows6 driver version 9.21.1 git
  5. ; commit 48f027cfca52b16b5fd23d82e6016ed8a91fc4d3.
  6. ; See: https://github.com/OpenVPN/tap-windows6
  7. ;
  8. ; Modified by ZeroTier, Inc. - https://www.zerotier.com/
  9. ;
  10. ; (1) Comment out 'tun' functionality and related features such as DHCP
  11. ; emulation, since we don't use any of that. Just want straight 'tap'.
  12. ; (2) Added custom IOCTL to enumerate L2 multicast memberships.
  13. ; (3) Increase maximum number of multicast memberships to 128.
  14. ; (4) Set default and max device MTU to 2800.
  15. ; (5) Rename/rebrand driver as ZeroTier network port driver.
  16. ;
  17. ; Original copyright below. Modifications released under GPLv2 as well.
  18. ;
  19. ; ****************************************************************************
  20. ; * Copyright (C) 2002-2014 OpenVPN Technologies, Inc. *
  21. ; * This program is free software; you can redistribute it and/or modify *
  22. ; * it under the terms of the GNU General Public License version 2 *
  23. ; * as published by the Free Software Foundation. *
  24. ; ****************************************************************************
  25. ;
  26. [Version]
  27. Signature = "$Windows NT$"
  28. CatalogFile = zttap300.cat
  29. ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318}
  30. Provider = %Provider%
  31. Class = Net
  32. DriverVer=04/25/2015,3.00.00.0
  33. [Strings]
  34. DeviceDescription = "ZeroTier One Virtual Port"
  35. Provider = "ZeroTier Networks LLC" ; We're ZeroTier, Inc. now but kernel mode certs are $300+ so fuqdat.
  36. ; To build for x86, take NTamd64 off this and off the named section manually, build, then put it back!
  37. [Manufacturer]
  38. %Provider%=zttap300,NTamd64
  39. [zttap300]
  40. %DeviceDescription% = zttap300.ndi, root\zttap300 ; Root enumerated
  41. %DeviceDescription% = zttap300.ndi, zttap300 ; Legacy
  42. [zttap300.NTamd64]
  43. %DeviceDescription% = zttap300.ndi, root\zttap300 ; Root enumerated
  44. %DeviceDescription% = zttap300.ndi, zttap300 ; Legacy
  45. ;----------------- Characteristics ------------
  46. ; NCF_PHYSICAL = 0x04
  47. ; NCF_VIRTUAL = 0x01
  48. ; NCF_SOFTWARE_ENUMERATED = 0x02
  49. ; NCF_HIDDEN = 0x08
  50. ; NCF_NO_SERVICE = 0x10
  51. ; NCF_HAS_UI = 0x80
  52. ;----------------- Characteristics ------------
  53. [zttap300.ndi]
  54. CopyFiles = zttap300.driver, zttap300.files
  55. AddReg = zttap300.reg
  56. AddReg = zttap300.params.reg
  57. Characteristics = 0x81
  58. *IfType = 0x6 ; IF_TYPE_ETHERNET_CSMACD
  59. *MediaType = 0x0 ; NdisMedium802_3
  60. *PhysicalMediaType = 14 ; NdisPhysicalMedium802_3
  61. [zttap300.ndi.Services]
  62. AddService = zttap300, 2, zttap300.service
  63. [zttap300.reg]
  64. HKR, Ndi, Service, 0, "zttap300"
  65. HKR, Ndi\Interfaces, UpperRange, 0, "ndis5" ; yes, 'ndis5' is correct... yup, Windows.
  66. HKR, Ndi\Interfaces, LowerRange, 0, "ethernet"
  67. HKR, , Manufacturer, 0, "%Provider%"
  68. HKR, , ProductName, 0, "%DeviceDescription%"
  69. [zttap300.params.reg]
  70. HKR, Ndi\params\MTU, ParamDesc, 0, "MTU"
  71. HKR, Ndi\params\MTU, Type, 0, "int"
  72. HKR, Ndi\params\MTU, Default, 0, "2800"
  73. HKR, Ndi\params\MTU, Optional, 0, "0"
  74. HKR, Ndi\params\MTU, Min, 0, "100"
  75. HKR, Ndi\params\MTU, Max, 0, "2800"
  76. HKR, Ndi\params\MTU, Step, 0, "1"
  77. HKR, Ndi\params\MediaStatus, ParamDesc, 0, "Media Status"
  78. HKR, Ndi\params\MediaStatus, Type, 0, "enum"
  79. HKR, Ndi\params\MediaStatus, Default, 0, "0"
  80. HKR, Ndi\params\MediaStatus, Optional, 0, "0"
  81. HKR, Ndi\params\MediaStatus\enum, "0", 0, "Application Controlled"
  82. HKR, Ndi\params\MediaStatus\enum, "1", 0, "Always Connected"
  83. HKR, Ndi\params\MAC, ParamDesc, 0, "MAC Address"
  84. HKR, Ndi\params\MAC, Type, 0, "edit"
  85. HKR, Ndi\params\MAC, Optional, 0, "1"
  86. HKR, Ndi\params\AllowNonAdmin, ParamDesc, 0, "Non-Admin Access"
  87. HKR, Ndi\params\AllowNonAdmin, Type, 0, "enum"
  88. HKR, Ndi\params\AllowNonAdmin, Default, 0, "0"
  89. HKR, Ndi\params\AllowNonAdmin, Optional, 0, "0"
  90. HKR, Ndi\params\AllowNonAdmin\enum, "0", 0, "Not Allowed"
  91. HKR, Ndi\params\AllowNonAdmin\enum, "1", 0, "Allowed"
  92. ;---------- Service Type -------------
  93. ; SERVICE_KERNEL_DRIVER = 0x01
  94. ; SERVICE_WIN32_OWN_PROCESS = 0x10
  95. ;---------- Service Type -------------
  96. ;---------- Start Mode ---------------
  97. ; SERVICE_BOOT_START = 0x0
  98. ; SERVICE_SYSTEM_START = 0x1
  99. ; SERVICE_AUTO_START = 0x2
  100. ; SERVICE_DEMAND_START = 0x3
  101. ; SERVICE_DISABLED = 0x4
  102. ;---------- Start Mode ---------------
  103. [zttap300.service]
  104. DisplayName = %DeviceDescription%
  105. ServiceType = 1
  106. StartType = 3
  107. ErrorControl = 1
  108. LoadOrderGroup = NDIS
  109. ServiceBinary = %12%\zttap300.sys
  110. ;----------------- Copy Flags ------------
  111. ; COPYFLG_NOSKIP = 0x02
  112. ; COPYFLG_NOVERSIONCHECK = 0x04
  113. ;----------------- Copy Flags ------------
  114. [SourceDisksNames]
  115. 1 = %DeviceDescription%, zttap300.sys
  116. [SourceDisksFiles]
  117. zttap300.sys = 1
  118. [DestinationDirs]
  119. zttap300.files = 11
  120. zttap300.driver = 12
  121. [zttap300.files]
  122. ;
  123. [zttap300.driver]
  124. zttap300.sys,,,6 ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK