From: Samuel Jero Date: Wed, 16 Nov 2011 22:28:58 +0000 (-0500) Subject: bugfix for 6667c43df783 "Add warning about malformed ACK vectors"---I'm an idiot X-Git-Url: http://sjero.net/git/?p=dccp2tcp;a=commitdiff_plain;h=6982cc044d3a4da684ff3c6db3748cab4825e52c bugfix for 6667c43df783 "Add warning about malformed ACK vectors"---I'm an idiot --- diff --git a/dccp2tcp.c b/dccp2tcp.c index a1a036a..62b0910 100644 --- a/dccp2tcp.c +++ b/dccp2tcp.c @@ -534,8 +534,8 @@ unsigned int interp_ack_vect(u_char* hdr) 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"); + if(((*cur& 0xC0)!= 0xC0) && ((*cur& 0xC0)!= 0x00) && ((*cur& 0xC0)!= 0x40)){ + dbgprintf(1, "Warning: Invalid Ack Vector!! (Linux will handle poorly!) -- %X\n", *cur); } tmp--; cur++;