diff options
author | jesper <jesper@FreeBSD.org> | 2002-06-30 20:07:21 +0000 |
---|---|---|
committer | jesper <jesper@FreeBSD.org> | 2002-06-30 20:07:21 +0000 |
commit | 3a003d229aa094d841df10015cab9632d69b3880 (patch) | |
tree | a52422840cb3a46fb7a733b0ed48686b5c664aa5 | |
parent | 065834fe01ec10f137b7bed1d5897a741b697620 (diff) | |
download | FreeBSD-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
-rw-r--r-- | sys/netinet/tcp_subr.c | 2 | ||||
-rw-r--r-- | sys/netinet/tcp_timewait.c | 2 |
2 files changed, 2 insertions, 2 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; diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c index f7800d2..5b2dfd0 100644 --- a/sys/netinet/tcp_timewait.c +++ b/sys/netinet/tcp_timewait.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; |