Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] INET6_ADDRSTRLEN redefinition

From: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
Date: Wed, 09 Jul 2008 13:37:01 -0400


Yunfan (Andy) Ying wrote:
Anyone else run into this issue while compiling Wireshark 1.0.1 on Windows XP with VS2005?

The INET6_ADDRSTRLEN defined in packet-ipv6.h seems to conflict with the INET6_ADDRSTRLEN of ws2tcpip.h in the Platform SDK. A simple #ifndef _WIN32 block around that definition seems to fix the issue.

This was fixed in the trunk with rev 25331:

http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=25331

I added that revision to the "should-copy-to-the-1.0-trunk" list on the roadmap (so it should go into 1.0.2 or 1.0.3).