[DCCP]: Fix for follows48
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Tue, 20 Mar 2007 16:03:47 +0000 (13:03 -0300)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:26:45 +0000 (22:26 -0700)
commitb16be51b5e5d75cec71b18ebc75f15a4734c62ad
tree2e7cd0225a4d30895d0b188c97e563de149cbe72
parentd52de17b8cf36d43a9d6977e7861a9f415541c6b
[DCCP]: Fix for follows48

The follows48 relation identifies whether 48-bit sequence number
x is the direct successor of y. Currently, it does not handle cases
of the following type correctly:

follows48(0x(prefix)10000LL, 0x(prefix)0FFFFLL)

where prefix is an arbitrary hex sequence of up to 7 digits.

This is fixed by reusing the new dccp_delta_seqno function.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/dccp.h