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-20 19:15:29 -08:00
2005-08-29 16:01:32 -07:00
2006-03-20 19:15:29 -08:00
2005-08-29 16:08:31 -07:00
2006-03-20 21:35:01 -08:00
2006-03-20 22:32:28 -08:00
2006-03-20 22:33:17 -08:00
2006-03-20 22:23:58 -08:00
2006-03-20 22:32:28 -08:00
2006-01-03 13:10:28 -08:00
2005-08-29 15:33:20 -07:00
2006-01-03 13:10:27 -08:00
2006-01-03 16:03:49 -08:00
2006-01-03 13:11:09 -08:00
2006-03-20 22:23:10 -08:00
2006-03-20 17:53:41 -08:00
2006-01-04 13:59:32 -08:00
2006-03-20 22:33:17 -08:00