]> sjero.net Git - dccp2tcp/commitdiff
Correct Maximum Number of TCP SACK blocks
authorSamuel Jero <sj323707@ohio.edu>
Thu, 26 May 2011 05:27:47 +0000 (01:27 -0400)
committerSamuel Jero <sj323707@ohio.edu>
Thu, 26 May 2011 05:27:47 +0000 (01:27 -0400)
Code had originally used 2 as the max number of SACK blocks.
The correct value is 4.

ChangeLog
dccp2tcp.c

index 85137824a287637d124f7619fb4069fcdda0cf07..8f7391f2d728ab5809497ee9ba9a4c51db1af409 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
        Release 1.4:
        Improvements:
        1)Add double -s option to only show Ack Vectors/SACKS with loss events
+       Bug Fixes:
+       1)Increase maximum number of TCP SACK segments to 4 (instead of two)
 
 
 05/15/2011:
index 0ed79a50fed94afe1ef42c6929ea5701ace9d266..71b7ece7b05b42ca6e617ec152b20f0cc968180a 100644 (file)
@@ -773,7 +773,7 @@ void ack_vect2sack(struct seq_num *seq, struct tcphdr *tcph, u_char* tcpopts, u_
        opt=dccphdr + sizeof(struct dccp_hdr) + sizeof(struct dccp_hdr_ext) + sizeof(struct dccp_hdr_ack_bits);
 
        /*setup tcp pointers*/
-       num_blocks=2;
+       num_blocks=4;
        *tcpopts=5;
        tlen=tcpopts+1;
        temp=tlen;