Skip to contentSkip to conversation

: Hook up CCID3 with new Loss Intervals Database

PATCH In review Gerrit Renker 1 participant 1 message Apr 5, 2007 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 24/43 : Hook up CCID3 with new Loss Intervals Database

[CCID3]: Hook up CCID3 with new Loss Intervals Database

This hooks up the TFRC Loss Interval database with CCID 3 packet reception.

---
 net/dccp/ccids/ccid3.c |   47 +++++++++++++++++++----------------------------
 net/dccp/ccids/ccid3.h |    8 ++++----
 2 files changed, 23 insertions(+), 32 deletions(-)
net/dccp/ccids/ccid3.h +4 -4
@@ -135,8 +135,8 @@ enum ccid3_hc_rx_states {
  *  @ccid3hcrx_rtt  -  Receiver estimate of RTT (RFC 4342, 8.1)
  *  @ccid3hcrx_pinv  -  Reciprocal of Loss Event Rate p (RFC 4342, sec. 8.5)
  *  @ccid3hcrx_tstamp_last_feedback  -  Time at which last feedback was sent
- *  @ccid3hcrx_hist  -  Packet history exported by TFRC module
- *  @ccid3hcrx_li_hist  -  Loss Interval History
+ *  @ccid3hcrx_hist  -  Packet history, exported by TFRC module
+ *  @ccid3hcrx_li_hist  -  Loss Interval database, exported by TFRC module
  *  @ccid3hcrx_elapsed_time  -  Time since packet reception
  */
 struct ccid3_hc_rx_sock {
@@ -146,10 +146,10 @@ struct ccid3_hc_rx_sock {
 	u32				ccid3hcrx_bytes_recv;
 	u32				ccid3hcrx_x_recv;
 	u32				ccid3hcrx_rtt;
-	u32				ccid3hcrx_pinv;
+#define ccid3hcrx_pinv			ccid3hcrx_li_hist.i_mean
 	struct timeval			ccid3hcrx_tstamp_last_feedback;
 	struct tfrc_rx_hist		ccid3hcrx_hist;
-	struct list_head		ccid3hcrx_li_hist;
+	struct tfrc_loss_hist		ccid3hcrx_li_hist;
 	u32				ccid3hcrx_elapsed_time;
 };
 
net/dccp/ccids/ccid3.c +19 -28

83 lines not on this page · raw message