[DCCP]: 48-bit sequence number arithmetic
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Tue, 20 Mar 2007 15:26:51 +0000 (12:26 -0300)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:26:42 +0000 (22:26 -0700)
commit6b811d43f6cc9eccdfc011a99f8571df2abc46d1
tree58e7f27415faf9ad6761bab6e51a7003139190f9
parent8b5be26831b973d8013e8b4c9860d9694310cdc6
[DCCP]: 48-bit sequence number arithmetic

This patch
 * organizes the sequence arithmetic functions into one corner of dccp.h
 * performs a small modification of dccp_set_seqno to make it more widely reusable
   (now it is safe to use any number, since it performs modulo-2^48 assignment)
 * adds functions and generic macros for 48-bit sequence arithmetic:
  --48 bit complement
  --modulo-48 addition and modulo-48 subtraction
--dccp_inc_seqno now a special case of add48
Constants renamed following a suggestion by Arnaldo.

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/ackvec.c
net/dccp/dccp.h