Netcat 0.7.1 does not compile on Cygwin out of the box.
1) On Windows, there is no ipi_spec_dst in struct in_pktinfo.
Also, when issue (1) is fixed, UDP mode does not work, as:
2) SO_LINGER option is not valid for UDP sockes on Windows
I've included a patch which modifies configure.ac, config.h.in and netcat.h to take (1) into account, and also modifies netcat.c in order to address (2).
tar -xvf netcat-0.7.1.tar.gz
patch -p0 < netcat-cygwin.patch
Log in to post a comment.