Ilpo Järvinen c887e6d2d9 tcp: consolidate paws check
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@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-03-15 20:09:52 -07:00
..
2008-11-25 17:59:27 -08:00
2009-02-23 10:05:54 +11:00
2008-07-16 20:20:11 -07:00
2008-11-25 17:59:27 -08:00
2009-02-22 19:54:48 -08:00
2008-11-03 18:21:05 -08:00
2008-11-25 17:30:50 -08:00
2008-10-07 08:38:24 +11:00
2009-02-16 00:08:56 -08:00
2008-06-11 21:00:38 -07:00
2008-11-03 18:21:05 -08:00
2009-03-02 03:00:15 -08:00
2009-03-02 03:00:15 -08:00
2009-03-02 03:00:15 -08:00
2009-03-02 03:00:14 -08:00
2009-03-15 20:09:52 -07:00
2009-03-15 20:09:52 -07:00
2009-03-13 16:05:14 -07:00
2008-12-09 00:13:04 -08:00
2009-03-02 03:00:15 -08:00
2009-03-02 03:00:15 -08:00