Skip to content

Commit

Permalink
Fix name of the registry parameter for MAC address
Browse files Browse the repository at this point in the history
- Replace registry entry MAC by NetworkAddress.
- Add a directive to remove any old entry named MAC
  to support upgrade.

No validation of input is done. Windows accepts MAC
as 12 hex characters with an optional hyphen between
bytes but not colons. Also the MAC should be a valid
"locally administered address".

Signed-off-by: Selva Nair <[email protected]>
  • Loading branch information
selvanair authored and cron2 committed Sep 22, 2020
1 parent 06533c4 commit 58d993c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/OemVista.inf.in
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
CopyFiles = @[email protected], @[email protected]
AddReg = @[email protected]
AddReg = @[email protected]
DelReg = @[email protected]
Characteristics = @PRODUCT_TAP_WIN_CHARACTERISTICS@
*IfType = 53 ; IF_TYPE_PROP_VIRTUAL
*MediaType = 0x0 ; NdisMedium802_3
Expand Down Expand Up @@ -117,16 +118,19 @@
HKR, Ndi\params\MediaStatus, Optional, 0, "0"
HKR, Ndi\params\MediaStatus\enum, "0", 0, "Application Controlled"
HKR, Ndi\params\MediaStatus\enum, "1", 0, "Always Connected"
HKR, Ndi\params\MAC, ParamDesc, 0, "MAC Address"
HKR, Ndi\params\MAC, Type, 0, "edit"
HKR, Ndi\params\MAC, Optional, 0, "1"
HKR, Ndi\params\NetworkAddress, ParamDesc, 0, "MAC Address"
HKR, Ndi\params\NetworkAddress, Type, 0, "edit"
HKR, Ndi\params\NetworkAddress, Optional, 0, "1"
HKR, Ndi\params\AllowNonAdmin, ParamDesc, 0, "Non-Admin Access"
HKR, Ndi\params\AllowNonAdmin, Type, 0, "enum"
HKR, Ndi\params\AllowNonAdmin, Default, 0, "1"
HKR, Ndi\params\AllowNonAdmin, Optional, 0, "0"
HKR, Ndi\params\AllowNonAdmin\enum, "0", 0, "Not Allowed"
HKR, Ndi\params\AllowNonAdmin\enum, "1", 0, "Allowed"

[@[email protected]]
HKR, Ndi\params\MAC

;----------------------------------------------------------------
; Service Section
;----------------------------------------------------------------
Expand Down

0 comments on commit 58d993c

Please sign in to comment.