win: fix undeclared NDIS_IF_MAX_STRING_SIZE#1623
Conversation
NDIS_IF_MAX_STRING_SIZE does not appear to be available on many windows system.
|
I can confirm libuv 1.16.0 fails to build on an appveyor configuration used for MoarVM and on a separate windows system. |
|
Interesting. According to this, It looks like Wireshark does this, but that code is over four years old. |
|
BTW, @ugexe on what platform the compilation fails for you? I'm +1 on adding the define, but I see you are using |
|
Platform is Windows 10 (Version 1703; OS Build 15063.674) and VS2017. It does build with Without commenting out the noted two lines: |
|
Another data point on the I was looking at the win2012r2-vs2017 build output and wondered if |
|
@bzoz what do you want to do here? I'd like to get this resolved soon rather than later, as our most recent release is broken on a few platforms. |
|
@cjihrig I would use the Wiresharks form of #ifndef NDIS_IF_MAX_STRING_SIZE
#define NDIS_IF_MAX_STRING_SIZE IF_MAX_STRING_SIZE
#endifif it works on that setup. I'm +1 on this, I was just curious about why this happens. |
|
I can confirm the wireshark method also resolves the original problem. |
cjihrig
left a comment
There was a problem hiding this comment.
LGTM if the CI comes back green: https://ci.nodejs.org/view/libuv/job/libuv-test-commit/566/
NDIS_IF_MAX_STRING_SIZE does not appear to be available on some Windows systems. This commit defines it using the same logic used by Wireshark. See: https://github.com/boundary/wireshark/blob/07eade8124fd1d5386161591b52e177ee6ea849f/capture_win_ifnames.c#L42-L44 Refs: nodejs/node#16835 Refs: #1445 PR-URL: #1623 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
|
Landed in 84fa7fc. Thanks! |
NDIS_IF_MAX_STRING_SIZE does not appear to be available on many windows system.