DCCP protocol discussions
 help / color / mirror / Atom feed
From: Gerrit Renker <gerrit@erg.abdn.ac.uk>
To: dccp@vger.kernel.org
Subject: Re: [PATCH 0/8]: Sequence numbers, larger windows revisited, minor cleanups
Date: Thu, 21 Dec 2006 12:01:02 +0000	[thread overview]
Message-ID: <200612211201.02804@strip-the-willow> (raw)
In-Reply-To: <200612151049.50073@strip-the-willow>

Thank you - but what I actually wanted/needed to know is:

 * OK to ditch the add48/sub48 functions (which take a pointer to u64 and thus are useless on 48:-bit fields)?
 * OK to instead use the following macros instead?
#define add48(seqno, b)     	seqno = (seqno + (b)) & DCCP_MAX_SEQNO
#define sub48(seqno, b) 	add48(seqno, COMPLEMENT48((b)))
#define inc48(seqno)		add48(seqno, 1)

Reasons: 
	1) this kind of sequence arithmetic seems unlikely to be used for main DCCP
           data structures which all use u64 to store sequence numbers (e.g. all places 
           where dccp_inc_seqno is used)
	2) ccid3 has very long names, it makes things simpler to put assignent into the macro
	3) with a function this kind of assignment is not possible, and the operation is actually simple

Gerrit

Quoting Ian McDonald:
|  On 12/19/06, Gerrit Renker <gerrit@erg.abdn.ac.uk> wrote:
|  > I am not fussy about getting the patches into 2.6.20 at all cost. I am reconsidering
|  > the add48/sub48 and the dccp_inc_seqno functions/macros.
|  >
|  Gerrit,
|  
|  I think leave your code in as it covered more cases than mine and it
|  works - I've been doing quite a bit of testing of CCID3 and I'm happy
|  with your code as per your patch series.
|  
|  Ian

      parent reply	other threads:[~2006-12-21 12:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-15 10:49 [PATCH 0/8]: Sequence numbers, larger windows revisited, minor cleanups Gerrit Renker
2006-12-15 21:54 ` Ian McDonald
2006-12-15 23:59 ` Arnaldo Carvalho de Melo
2006-12-16  0:09 ` Ian McDonald
2006-12-19 10:07 ` Gerrit Renker
2006-12-19 23:06 ` Ian McDonald
2006-12-21 12:01 ` Gerrit Renker [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200612211201.02804@strip-the-willow \
    --to=gerrit@erg.abdn.ac.uk \
    --cc=dccp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox