dccp: Fix to handle short sequence numbers packet correctly
authorWei Yongjun <yjwei@cn.fujitsu.com>
Tue, 27 May 2008 13:22:38 +0000 (06:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 May 2008 13:22:38 +0000 (06:22 -0700)
commit6079a463cf95fafcc704a4e5e92a4da12444bd3c
tree00080f77f8bef52b78cdbb8762c2625dac18b4fc
parent289c79a4bd350e8a25065102563ad1a183d1b402
dccp: Fix to handle short sequence numbers packet correctly

RFC4340 said:
  8.5.  Pseudocode
       ...
       If P.type is not Data, Ack, or DataAck and P.X == 0 (the packet
             has short sequence numbers), drop packet and return

But DCCP has some mistake to handle short sequence numbers packet, now
it drop packet only if P.type is Data, Ack, or DataAck and P.X == 0.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Acked-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/ipv4.c