Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188864
b: refs/heads/master
c: 97e3ecd
h: refs/heads/master
v: v3
  • Loading branch information
stephen hemminger authored and David S. Miller committed Mar 20, 2010
1 parent 9449553 commit f7c9920
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 10414444cb8a8ee8893e00390b7cf40502e28352
refs/heads/master: 97e3ecd112ba45eb217cddab59f48659bc15d9d0
5 changes: 5 additions & 0 deletions trunk/net/ipv4/tcp_ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,11 @@ void tcp_v4_err(struct sk_buff *icmp_skb, u32 info)
if (sk->sk_state == TCP_CLOSE)
goto out;

if (unlikely(iph->ttl < inet_sk(sk)->min_ttl)) {
NET_INC_STATS_BH(net, LINUX_MIB_TCPMINTTLDROP);
goto out;
}

icsk = inet_csk(sk);
tp = tcp_sk(sk);
seq = ntohl(th->seq);
Expand Down

0 comments on commit f7c9920

Please sign in to comment.