From: Samuel Jero Date: Wed, 8 Jun 2011 03:07:43 +0000 (-0400) Subject: Add warning about malformed ACK vectors X-Git-Url: http://sjero.net/git/?p=dccp2tcp;a=commitdiff_plain;h=291fa6397c5dfb5e7a042cd978bab29d1c2faa45 Add warning about malformed ACK vectors Linux Implementation will handle them incorrectly. It will count the packet as acked. ccid2.c line 657 --- diff --git a/dccp2tcp.c b/dccp2tcp.c index 71b7ece..1ab8ed1 100644 --- a/dccp2tcp.c +++ b/dccp2tcp.c @@ -620,6 +620,10 @@ unsigned int interp_ack_vect(u_char* hdr) if((*cur & 0xC0)==0x00){ //received packet bp+= (*cur & 0x3F)+1; } + + if(((*cur& 0xF0)!= 0xC0) && ((*cur& 0xF0)!= 0x00) && ((*cur& 0xF0)!= 0x40)){ + dbgprintf(1, "Warning: Invalid Ack Vector!! (Linux will handle poorly!)\n"); + } tmp--; cur++; }