summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorjesper <jesper@FreeBSD.org>2002-06-30 20:07:21 +0000
committerjesper <jesper@FreeBSD.org>2002-06-30 20:07:21 +0000
commit3a003d229aa094d841df10015cab9632d69b3880 (patch)
treea52422840cb3a46fb7a733b0ed48686b5c664aa5 /sys/netinet/tcp_subr.c
parent065834fe01ec10f137b7bed1d5897a741b697620 (diff)
downloadFreeBSD-src-3a003d229aa094d841df10015cab9632d69b3880.zip
FreeBSD-src-3a003d229aa094d841df10015cab9632d69b3880.tar.gz
Extend the effect of the sysctl net.inet.tcp.icmp_may_rst
so that, if we recieve a ICMP "time to live exceeded in transit", (type 11, code 0) for a TCP connection on SYN-SENT state, close the connection. MFC after: 2 weeks
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r--sys/netinet/tcp_subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index f7800d2..5b2dfd0 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -1042,7 +1042,7 @@ tcp_ctlinput(cmd, sa, vip)
if (cmd == PRC_QUENCH)
notify = tcp_quench;
else if (icmp_may_rst && (cmd == PRC_UNREACH_ADMIN_PROHIB ||
- cmd == PRC_UNREACH_PORT) && ip)
+ cmd == PRC_UNREACH_PORT || cmd == PRC_TIMXCEED_INTRANS) && ip)
notify = tcp_drop_syn_sent;
else if (cmd == PRC_MSGSIZE)
notify = tcp_mtudisc;
OpenPOWER on IntegriCloud