git: tcp/sack: If other side reneged, discard the current SACK scoreboard

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Tue May 29 18:52:00 PDT 2012


commit 9ba0ed2f0a35e061e17843329b9a1e64e8a47181
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Wed May 30 09:43:50 2012 +0800

    tcp/sack: If other side reneged, discard the current SACK scoreboard
    
    Other side reneging is detected using the first SACK record:
    If its left edge is less than or equal to the cumulative ACK of the
    incoming segment, other side probably reneged.
    
    This fixes the later assertion that the first SACK record's left edge
    must be above snd_una in tcp_sack_first_unsacked_len()
    
    Add statistics about other side reneging

Summary of changes:
 sys/netinet/tcp_sack.c |    7 +++++--
 sys/netinet/tcp_var.h  |    3 ++-
 usr.bin/netstat/inet.c |    1 +
 3 files changed, 8 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9ba0ed2f0a35e061e17843329b9a1e64e8a47181


-- 
DragonFly BSD source repository





More information about the Commits mailing list