summaryrefslogtreecommitdiffstats
path: root/src/vnet/tcp/tcp_format.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2017-04-26 00:08:42 -0700
committerFlorin Coras <fcoras@cisco.com>2017-05-01 10:41:44 -0700
commitc28764fd356632763614ea579f678d8f55eca4c7 (patch)
tree2c46999bc9474a5604f057812e6c25a821621b2c /src/vnet/tcp/tcp_format.c
parent63c7e14f2e62caa1246349cfe341a93176ec4a43 (diff)
TCP ooo reception fixes
- Improve svm fifo handling of out-of-order segments - Ensure tsval_recent is updated only if rcv_las falls withing the segments's sequence space - Avoid directly dropping old ACKs - Improve debugging Change-Id: I88dbe2394a0ad7eb389a4cc12d013a13733953aa Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/tcp/tcp_format.c')
-rw-r--r--src/vnet/tcp/tcp_format.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vnet/tcp/tcp_format.c b/src/vnet/tcp/tcp_format.c
index 3148fd406c9..4de99235934 100644
--- a/src/vnet/tcp/tcp_format.c
+++ b/src/vnet/tcp/tcp_format.c
@@ -131,11 +131,13 @@ format_tcp_header (u8 * s, va_list * args)
u8 *
format_tcp_sacks (u8 * s, va_list * args)
{
- sack_block_t *sacks = va_arg (*args, sack_block_t *);
+ tcp_connection_t *tc = va_arg (*args, tcp_connection_t *);
+ sack_block_t *sacks = tc->snd_sacks;
sack_block_t *block;
vec_foreach (block, sacks)
{
- s = format (s, " start %u end %u\n", block->start, block->end);
+ s = format (s, " start %u end %u\n", block->start - tc->irs,
+ block->end - tc->irs);
}
return s;
}