diff options
author | Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> | 2006-03-22 23:27:59 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-22 23:27:59 +0100 |
commit | 1a55d57b107c3e06935763905dc0fb235214569d (patch) | |
tree | 5d894dbda60fa2e998dda4912e6e0a50f769709d /net/rxrpc | |
parent | [NETFILTER]: Fix undefined references to get_h225_addr (diff) | |
download | linux-1a55d57b107c3e06935763905dc0fb235214569d.tar.xz linux-1a55d57b107c3e06935763905dc0fb235214569d.zip |
[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>
Diffstat (limited to 'net/rxrpc')
0 files changed, 0 insertions, 0 deletions