https://bugs.winehq.org/show_bug.cgi?id=48567
Bug ID: 48567 Summary: Wine returns the loopback IP as first item in GetIpAddrTable and a MAC of 0 Product: Wine Version: 5.0-rc3 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: iphlpapi Assignee: wine-bugs@winehq.org Reporter: ez@vajn.icu Distribution: ---
Created attachment 66389 --> https://bugs.winehq.org/attachment.cgi?id=66389 C source
This is the same bug as 40247 which was marked as "CLOSED FIXED"
All flexnet based licensing fails to work under wine because it receives a hardware MAC of 0 returned by the "lo" interface:
$ lmutil.exe lmhostid lmutil - Copyright (c) 1989-2017 Flexera Software LLC. All Rights Reserved. The FlexNet host ID of this machine is "ffffffff"
If you compile the attached C program and run it in wine you get:
$ mingw32-gcc -DMINGW -o get_mac get_mac.c -lnetapi32 $ ./get_mac.exe MAC: 000000000000
In Linux the eth0 MAC is:
$ gcc -o get_mac get_mac.c $ ./get_mac Grabbing MAC address for interface eth0 MAC: e03619b3b50e
https://bugs.winehq.org/show_bug.cgi?id=48567
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase
https://bugs.winehq.org/show_bug.cgi?id=48567
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexhenrie24@gmail.com
--- Comment #1 from Alex Henrie alexhenrie24@gmail.com --- Hi Zelea, could you please share the complete output of `ip link` on the computer where you see this problem?
https://bugs.winehq.org/show_bug.cgi?id=48567
--- Comment #2 from Hans Leidekker hans@meelstraat.net --- (In reply to zelea2 from comment #0)
Created attachment 66389 [details] C source
This is the same bug as 40247 which was marked as "CLOSED FIXED"
All flexnet based licensing fails to work under wine because it receives a hardware MAC of 0 returned by the "lo" interface:
$ lmutil.exe lmhostid lmutil - Copyright (c) 1989-2017 Flexera Software LLC. All Rights Reserved. The FlexNet host ID of this machine is "ffffffff"
If you compile the attached C program and run it in wine you get:
$ mingw32-gcc -DMINGW -o get_mac get_mac.c -lnetapi32 $ ./get_mac.exe MAC: 000000000000
The code enumerates interfaces and takes the MAC address of the last interface. If that interface doesn't have a hardware address (e.g. a tunnel device) you get this result.