]> git.sur5r.net Git - openldap/commitdiff
More for prev commit
authorHoward Chu <hyc@openldap.org>
Fri, 14 Aug 2009 20:02:08 +0000 (20:02 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 14 Aug 2009 20:02:08 +0000 (20:02 +0000)
libraries/libldap/os-ip.c

index ec3244c2de3e80efacdc386c9cc709ad55e414dc..49fdc271b3e349b78e53fad7fdd974825e4a8cd1 100644 (file)
@@ -162,7 +162,7 @@ ldap_int_prepare_socket(LDAP *ld, int s, int proto )
                if ( ld->ld_options.ldo_keepalive_probes > 0 )
                {
 #ifdef TCP_KEEPCNT
-                       if ( setsockopt( s, SOL_TCP, TCP_KEEPCNT,
+                       if ( setsockopt( s, IPPROTO_TCP, TCP_KEEPCNT,
                                        (void*) &ld->ld_options.ldo_keepalive_probes,
                                        sizeof(ld->ld_options.ldo_keepalive_probes) ) == AC_SOCKET_ERROR )
                        {
@@ -179,7 +179,7 @@ ldap_int_prepare_socket(LDAP *ld, int s, int proto )
                if ( ld->ld_options.ldo_keepalive_interval > 0 )
                {
 #ifdef TCP_KEEPINTVL
-                       if ( setsockopt( s, SOL_TCP, TCP_KEEPINTVL,
+                       if ( setsockopt( s, IPPROTO_TCP, TCP_KEEPINTVL,
                                        (void*) &ld->ld_options.ldo_keepalive_interval,
                                        sizeof(ld->ld_options.ldo_keepalive_interval) ) == AC_SOCKET_ERROR )
                        {