Hi,
I tried setting SCTP_DELAYED_ACK_TIME in my code. But when I observe the sack delay through tcpdump the value set is not reflecting( ie the sack packet are send before the given time delay.) But the setsockopt API is not returning any error. Can anyone help me fix this problem?
Kernal version I am using is
Linux manya 2.6.18-84.el5PAE #1 SMP Fri Feb 29 16:41:17 EST 2008 i686 i686 i386 GNU/Linux
My code:
memset(&sack_val, 0, sizeof(sack_val));
sack_val.assoc_value = g_config_param.sctp_delayed_ack_time;
sack_val.assoc_id = 1;
opt_len = sizeof(sack_val);
if((rc = setsockopt(clientfd, IPPROTO_SCTP, SCTP_DELAYED_ACK_TIME, &sack_val, opt_len)) < 0 )
{
setcallerinfo ("s1ap", ATERROR, FN, "error");
log_error ("ERROR TEXT : Error in setsockop : SCTP_DELAYED_ACK_TIME, [%d]: \"%s\"\n",
errno, strerror (errno));
return S1AP_FAILURE;
}
regards,
Prasanth
Archive powered by MHonArc 2.6.19+.