: Insert and Update routines for the Loss Interval Database
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.
Signed-off-by Gerrit Renker <[email protected]>
--- 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 treturn 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
Quoted 3 lines · Gerrit Renker
[TFRC]: Insert and Update routines for the Loss Interval Database
Signed-off-by Gerrit Renker <[email protected]>
Signed-off-by Ian McDonald <[email protected]>
Signature · 3 lines
Web: http://wand.net.nz/~iam4/ Blog: http://iansblog.jandi.co.nz WAND Network Research Group