Commit a882a301 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

Fix prev commit again, IPPROTO_TCP is the documented correct approach

parent c129316e
......@@ -145,11 +145,7 @@ ldap_int_prepare_socket(LDAP *ld, int s, int proto )
if ( ld->ld_options.ldo_keepalive_idle > 0 )
{
#ifdef TCP_KEEPIDLE
/* AIX uses protocol numbers for everything besides SOL_SOCKET */
#ifndef SOL_TCP
#define SOL_TCP IPPROTO_TCP
#endif
if ( setsockopt( s, SOL_TCP, TCP_KEEPIDLE,
if ( setsockopt( s, IPPROTO_TCP, TCP_KEEPIDLE,
(void*) &ld->ld_options.ldo_keepalive_idle,
sizeof(ld->ld_options.ldo_keepalive_idle) ) == AC_SOCKET_ERROR )
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment