Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[TCP]: Update references in two old comments

This updates references to drafts in comments which must be about 10
years old. Internet draft draft-ietf-tcpimpl-prob-03.txt expired in 1998
and was replaced by RFC 2525 in March 1999.

Section 3.10 of the draft maps almost identically into section 2.17 of RFC
2525: both are entitled "Failure to RST on close with data pending", the
differences in text body amount to a typo and minor sentence change.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Gerrit Renker and committed by
David S. Miller
65bb723c ecfd6b18

+7 -9
+6 -8
net/ipv4/tcp.c
··· 1573 1573 1574 1574 sk_stream_mem_reclaim(sk); 1575 1575 1576 - /* As outlined in draft-ietf-tcpimpl-prob-03.txt, section 1577 - * 3.10, we send a RST here because data was lost. To 1578 - * witness the awful effects of the old behavior of always 1579 - * doing a FIN, run an older 2.1.x kernel or 2.0.x, start 1580 - * a bulk GET in an FTP client, suspend the process, wait 1581 - * for the client to advertise a zero window, then kill -9 1582 - * the FTP client, wheee... Note: timeout is always zero 1583 - * in such a case. 1576 + /* As outlined in RFC 2525, section 2.17, we send a RST here because 1577 + * data was lost. To witness the awful effects of the old behavior of 1578 + * always doing a FIN, run an older 2.1.x kernel or 2.0.x, start a bulk 1579 + * GET in an FTP client, suspend the process, wait for the client to 1580 + * advertise a zero window, then kill -9 the FTP client, wheee... 1581 + * Note: timeout is always zero in such a case. 1584 1582 */ 1585 1583 if (data_was_unread) { 1586 1584 /* Unread data was tossed, zap the connection. */
+1 -1
net/ipv4/tcp_output.c
··· 2035 2035 /* We get here when a process closes a file descriptor (either due to 2036 2036 * an explicit close() or as a byproduct of exit()'ing) and there 2037 2037 * was unread data in the receive queue. This behavior is recommended 2038 - * by draft-ietf-tcpimpl-prob-03.txt section 3.10. -DaveM 2038 + * by RFC 2525, section 2.17. -DaveM 2039 2039 */ 2040 2040 void tcp_send_active_reset(struct sock *sk, gfp_t priority) 2041 2041 {