[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20061220200100.GA27176@infradead.org>
Date: Wed, 20 Dec 2006 20:01:00 +0000
From: Christoph Hellwig <hch@...radead.org>
To: Gerrit Renker <gerrit@....abdn.ac.uk>
Cc: David Miller <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH][RFC] tcp: fix ambiguity in the `before' relation
On Thu, Dec 14, 2006 at 03:07:06PM +0000, Gerrit Renker wrote:
> diff --git a/include/net/tcp.h b/include/net/tcp.h
> index c99774f..b7d8317 100644
> --- a/include/net/tcp.h
> +++ b/include/net/tcp.h
> @@ -242,14 +242,9 @@ extern int tcp_memory_pressure;
>
> static inline int before(__u32 seq1, __u32 seq2)
> {
> - return (__s32)(seq1-seq2) < 0;
> + return (__s32)(seq2-seq1) > 0;
> }
> -
> -static inline int after(__u32 seq1, __u32 seq2)
> -{
> - return (__s32)(seq2-seq1) < 0;
> -}
> -
> +#define after(seq2, seq1) before(seq1, seq2)
Btw, these macfox/inlines are named quite a bit too generic for
something that is in tcp.h
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists