summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorAndre Oppermann <andre@FreeBSD.org>2005-08-22 16:13:08 +0000
committerAndre Oppermann <andre@FreeBSD.org>2005-08-22 16:13:08 +0000
commit936cd18dade566c7ca5fd50cb4658f71f87ffcc1 (patch)
treee4fae08b9c2716f53ec0fdfe0bc72046c99f26b9 /sys/netinet/tcp_input.c
parent6b773dff30ea223c1ece875d88921ddc8876806e (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index c86a3eca3681..369315d484a2 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -740,6 +740,11 @@ findpcb:
goto dropwithreset;
}
INP_LOCK(inp);
+
+ /* Check the minimum TTL for socket. */
+ if (inp->inp_ip_minttl && inp->inp_ip_minttl > ip->ip_ttl)
+ goto drop;
+
if (inp->inp_vflag & INP_TIMEWAIT) {
/*
* The only option of relevance is TOF_CC, and only if