SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] setting SCTP_DELAYED_ACK_TIME


Chronological Thread 
  • From: Thomas Dreibholz <dreibh AT iem.uni-due.de>
  • To: sctp-discussion AT sctp.de
  • Subject: Re: [SCTP-Discussion] setting SCTP_DELAYED_ACK_TIME
  • Date: Fri, 30 Apr 2010 10:01:45 +0200
  • List-archive: <http://lists.franken.de/pipermail/sctp-discussion>
  • List-id: SCTP Discussions <sctp-discussion.sctp.de>
  • Organization: University of Duisburg-Essen

On Montag 19 April 2010, Prasanth Pillai wrote:
> 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

Are you using sctplib/socketapi userland SCTP or the Linux Kernel SCTP
(LK-SCTP)? Your code below looks like you are using LK-SCTP. This is the
mailing list for sctplib/socketapi userland SCTP. You can download our
implementation here: http://www.sctp.de/sctp-download.html .


> 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


Best regards
--
=======================================================================
Dr. Thomas Dreibholz

University of Duisburg-Essen, Room ES210
Inst. for Experimental Mathematics Ellernstraße 29
Computer Networking Technology Group D-45326 Essen/Germany
-----------------------------------------------------------------------
E-Mail:
dreibh AT iem.uni-due.de
Homepage: http://www.iem.uni-due.de/~dreibh
=======================================================================

Attachment: signature.asc
Description: This is a digitally signed message part.




Archive powered by MHonArc 2.6.19+.

Top of page