DCCP protocol discussions
 help / color / mirror / Atom feed
From: Leandro <leandroal@gmail.com>
To: dccp@vger.kernel.org
Subject: [PATCH 14/25] Basic implementation for ccid-4 dropped packet option
Date: Thu, 01 Nov 2007 00:31:40 +0000	[thread overview]
Message-ID: <200710312131.40317.leandroal@gmail.com> (raw)

[CCID-4] Basic implementation for ccid-4 dropped packet option as per ccid-4 draft

Signed-off-by: Leandro Melo de Sales <leandro@embedded.ufcg.edu.br>

Index: leandro.new/net/dccp/ccids/lib/tfrc_ccids.h
=================================--- leandro.new.orig/net/dccp/ccids/lib/tfrc_ccids.h
+++ leandro.new/net/dccp/ccids/lib/tfrc_ccids.h
@@ -36,12 +36,15 @@ enum tfrc_options {
 	TFRC_OPT_LOSS_EVENT_RATE = 192,
 	TFRC_OPT_LOSS_INTERVALS	 = 193,
 	TFRC_OPT_RECEIVE_RATE	 = 194,
+	TFRC_OPT_DROPPED_PACKETS = 195, /* as per ccid-4 draft, section 8 */
 };
 
 struct tfrc_options_received {
 	u64 tfrcor_seqno:48,
-	    tfrcor_loss_intervals_idx:16;
-	u16 tfrcor_loss_intervals_len;
+	    tfrcor_loss_intervals_idx:16,
+	    tfrcor_dropped_packets_idx:16;
+	u16 tfrcor_loss_intervals_len,
+            tfrcor_dropped_packets_len;
 	u32 tfrcor_loss_event_rate;
 	u32 tfrcor_receive_rate;
 };
Index: leandro.new/net/dccp/ccids/ccid4.c
=================================--- leandro.new.orig/net/dccp/ccids/ccid4.c
+++ leandro.new/net/dccp/ccids/ccid4.c
@@ -590,6 +590,9 @@ static int ccid4_hc_tx_parse_options(str
 				       opt_recv->tfrcor_receive_rate);
 		}
 		break;
+        case TFRC_OPT_DROPPED_PACKETS:
+                /* FIXME: Implement this sock option according to ccid-4 draft */
+                break;
 	}
 
 	return rc;

             reply	other threads:[~2007-11-01  0:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-01  0:31 Leandro [this message]
2007-11-01 11:05 ` [PATCH 14/25] Basic implementation for ccid-4 dropped packet Arnaldo Carvalho de Melo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200710312131.40317.leandroal@gmail.com \
    --to=leandroal@gmail.com \
    --cc=dccp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox