Alexey Kuznetsov 1a55d57b10 [TCP]: Do not use inet->id of global tcp_socket when sending RST.
The problem is in ip_push_pending_frames(), which uses:

        if (!df) {
                __ip_select_ident(iph, &rt->u.dst, 0);
        } else {
                iph->id = htons(inet->id++);
        }

instead of ip_select_ident().

Right now I think the code is a nonsense. Most likely, I copied it from
old ip_build_xmit(), where it was really special, we had to decide
whether to generate unique ID when generating the first (well, the last)
fragment.

In ip_push_pending_frames() it does not make sense, it should use plain
ip_select_ident() instead.

Signed-off-by: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-03-22 14:27:59 -08:00
..
2006-03-20 22:35:41 -08:00
2006-03-19 13:20:06 -08:00
2006-01-11 18:42:14 -08:00
2006-02-09 16:59:48 -08:00
2006-03-20 22:33:17 -08:00
2005-08-29 15:31:14 -07:00
2006-01-11 18:42:14 -08:00
2006-01-17 13:03:54 -08:00
2006-03-20 22:35:41 -08:00
2006-03-20 22:38:33 -08:00
2006-03-20 22:35:41 -08:00
2006-03-20 22:40:54 -08:00
2006-02-07 01:47:12 -05:00
2006-01-12 14:06:31 -08:00
2006-01-03 13:11:17 -08:00
2005-04-16 15:20:36 -07:00