Searched hist:c887e6d2d9aee56ee7c9f2af4cec3a5efdcc4c72 (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/net/ipv4/ |
H A D | tcp_minisocks.c | diff c887e6d2d9aee56ee7c9f2af4cec3a5efdcc4c72 Sat Mar 14 09:23:03 CDT 2009 Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> 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>
|
H A D | tcp_input.c | diff c887e6d2d9aee56ee7c9f2af4cec3a5efdcc4c72 Sat Mar 14 09:23:03 CDT 2009 Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> 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>
|
/openbmc/linux/include/net/ |
H A D | tcp.h | diff c887e6d2d9aee56ee7c9f2af4cec3a5efdcc4c72 Sat Mar 14 09:23:03 CDT 2009 Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> 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>
|