SCTP Discussions

Text archives Help


[SCTP-Discussion] setting SCTP_DELAYED_ACK_TIME


Chronological Thread 
  • From: Prasanth Pillai <prasanth1103 AT gmail.com>
  • To: sctp-discussion AT sctp.de
  • Subject: [SCTP-Discussion] setting SCTP_DELAYED_ACK_TIME
  • Date: Mon, 19 Apr 2010 11:14:14 +0530
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=u6O26eFjYkYEp6t+5bStptvDJY4tP2H3OgHC2D1vQSX/GfHolwrJ55LXoxmyYzPchl nk2YVW4axjaPcFr6O/VPAx/MTPjStIa4n30a8zKuY7RIvQLUJ//aHFWyk6JOZFWS9qXK 0Jyf97jfSJriXGZ1iaQyxgSmrf3oLtEsKlLco=
  • List-archive: <http://lists.franken.de/pipermail/sctp-discussion>
  • List-id: SCTP Discussions <sctp-discussion.sctp.de>

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+.

Top of page