OpenSSH-3.0.2p1 and Linux libc5

Richard Gooch rgooch at ras.ucalgary.ca
Wed Dec 26 16:30:24 EST 2001


Damien Miller writes:
> On Tue, 25 Dec 2001, Dan Kaminsky wrote:
> 
> > > > #ifndef TCP_NODELAY
> > > > #define TCP_NODELAY 1
> > > > #endif
> > >
> > > It's a rather big assumption that TCP_NODELAY is going to be 1 on every
> > > platform that doesn't have it in its headers.
> > 
> > Fair enough.  The alternative is to surround lines 1211-1213 in packet.c
> > (the only place in the codebase where TCP_NODELAY is actually used) w/ a
> > simple #ifdef TCP_NODELAY. 
> 
> You don't want to do that on an interactive connection.

How about:
#if !defined(TCP_NODELAY) && defined(__linux__)
#  define TCP_NODELAY 1
#endif

That will work on all Linux systems, and doesn't have the problem of
using a possibly bogus value on other platforms which don't define it.

				Regards,

					Richard....
Permanent: rgooch at atnf.csiro.au
Current:   rgooch at ras.ucalgary.ca



More information about the openssh-unix-dev mailing list