summaryrefslogtreecommitdiffstats
path: root/src/vnet/tcp/tcp_format.c
diff options
context:
space:
mode:
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;
}