IPv6 headers in Cygwin

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
kosh
Posts: 72
Joined: Sun Sep 13, 2009 5:38 am
Location: Japan
Contact:

IPv6 headers in Cygwin

Post by kosh »

Hi Lutz.

According to cygwin mailing list, IPv6 headers don't exist in Cygwin.

http://cygwin.com/ml/cygwin/2011-03/msg00459.html
On Mar 15 22:07, Olivier Lefevre wrote:
> I am trying to compile mtr-0.80. configure completed without
> errors but make puts:
>
> net.h:25:25: error: netinet/ip6.h: No such file or directory
> net.h:26:27: error: netinet/icmp6.h: No such file or directory
>
> I couldn't find what additional packages I should download to
> get IPv6 headers (which I assume are IPv6).

These headers don't exist in Cygwin. IPv6 works, but only if
you use the standard headers like netinet/in.h or netinet/ip.h.
However, newLISP can be compiled by copying icmp6.h header file from other OS.
# Of course, When using raw packet in Windows 7 user application is required administrator privileges.

Code: Select all

--- nl-sock.c.orig Tue Jun 14 12:52:46 2011
+++ nl-sock.c Tue Jun 14 12:51:30 2011
@@ -60,6 +60,7 @@
 #endif /* end UNIX */
 
 #ifdef CYGWIN
+#include <netinet/icmp6.h>
 #define ICMP_ECHO 8
If there are no GPL licensing issues, I will recommend put in the IPv6 header in newLISP package.

Locked