Skip to contentSkip to conversation

: Insert and Update routines for the Loss Interval Database

PATCH In review Gerrit Renker 2 participants 2 messages Jun 17, 2007 – Jun 28, 2007 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 5/9 : Insert and Update routines for the Loss Interval Database

[TFRC]: Insert and Update routines for the Loss Interval Database

This provides an `insert' function for the Loss Interval database. It only inserts when a loss is new, i.e. either
* no loss record has been allocated before (uninitialised) or
* the most recent loss is in a different RTT than the last one.

For this purpose, the test from [RFC 4342, 10.2] is used.

---
 net/dccp/ccids/ccid3.c             |   47 ------------------------------------
 net/dccp/ccids/lib/loss_interval.c |   48 +++++++++++++++++++++++++++++++++++++
 net/dccp/ccids/lib/loss_interval.h |    2 +
 3 files changed, 50 insertions(+), 47 deletions(-)
net/dccp/ccids/lib/loss_interval.h +2 -0
@@ -67,6 +67,8 @@ static inline u8 tfrc_lh_length(struct t
 	return min(lh->counter, (u8)LIH_SIZE);
 }
 
+extern int  tfrc_lh_interval_add(struct tfrc_loss_hist *, struct tfrc_rx_hist *,
+				 u32 (*first_li)(struct sock *), struct sock *);
 extern u8   tfrc_lh_update_i_mean(struct tfrc_loss_hist *lh, struct sk_buff *);
 extern void tfrc_lh_cleanup(struct tfrc_loss_hist *lh);
 
net/dccp/ccids/lib/loss_interval.c +48 -0

54 lines not on this page · raw message

net/dccp/ccids/ccid3.c +0 -47

53 lines not on this page · raw message