From: patthoyts Date: Mon, 22 Nov 2004 10:25:37 +0000 (+0000) Subject: * generic/udp_tcl.h: Fixed the -ttl option for Windows. X-Git-Tag: tcludp-1_0_6~4 X-Git-Url: http://privyetmir.co.uk/gitweb.cgi?a=commitdiff_plain;h=0660e80f6558e7672d2406f6a022943ac2846152;p=tcludp * generic/udp_tcl.h: Fixed the -ttl option for Windows. --- diff --git a/ChangeLog b/ChangeLog index c86949e..c057fd5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ -2004-11-22 Pat Thoyts +2004-11-22 Pat Thoyts + * generic/udp_tcl.h: Fixed the -ttl option for Windows. * generic/udp_tcl.c: Added support for setting and retrieving the TTL option on the socket. The default is specified by the system but can be set for individual sockets. diff --git a/generic/udp_tcl.h b/generic/udp_tcl.h index fdcf899..2fb38ed 100644 --- a/generic/udp_tcl.h +++ b/generic/udp_tcl.h @@ -51,6 +51,11 @@ #define TCL_STORAGE_CLASS DLLEXPORT #endif /* BUILD_udp */ +/* Windows doesn't declare SOL_IP. It uses this instead... */ +#ifndef SOL_IP +#define SOL_IP IPPROTO_IP +#endif /* SOL_IP */ + #ifdef WIN32 typedef u_short uint16_t;