[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20090315.201038.240269562.davem@davemloft.net>
Date: Sun, 15 Mar 2009 20:10:38 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: ilpo.jarvinen@...sinki.fi
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH 3/7] tcp: consolidate paws check
From: "Ilpo Järvinen" <ilpo.jarvinen@...sinki.fi>
Date: Sun, 15 Mar 2009 02:07:51 +0200
> Wow, it was quite tricky to merge that stream of negations
> but I think I finally got it right:
>
> check & replace_ts_recent:
> (s32)(rcv_tsval - ts_recent) >= 0 => 0
> (s32)(ts_recent - rcv_tsval) <= 0 => 0
>
> discard:
> (s32)(ts_recent - rcv_tsval) > TCP_PAWS_WINDOW => 1
> (s32)(ts_recent - rcv_tsval) <= TCP_PAWS_WINDOW => 0
>
> I toggled the return values of tcp_paws_check around since
> the old encoding added yet-another negation making tracking
> of truth-values really complicated.
>
> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@...sinki.fi>
Applied.
--
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