diff options
author | Eric Dumazet <edumazet@google.com> | 2023-02-01 17:43:45 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-02-02 21:14:50 -0800 |
commit | 2798e36dc233a409a5d3f26f73029596dc504020 (patch) | |
tree | 059e250ccf09225bbeb55b0123071aba7caed1ee /include/net/dropreason.h | |
parent | 0719bc3a5c77091192c57e440896a969cd1cf885 (diff) |
tcp: add TCP_MINTTL drop reason
In the unlikely case incoming packets are dropped because
of IP_MINTTL / IPV6_MINHOPCOUNT constraints...
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20230201174345.2708943-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/dropreason.h')
-rw-r--r-- | include/net/dropreason.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/dropreason.h b/include/net/dropreason.h index 70539288f995..94bc3d5d8803 100644 --- a/include/net/dropreason.h +++ b/include/net/dropreason.h @@ -71,6 +71,7 @@ FN(DUP_FRAG) \ FN(FRAG_REASM_TIMEOUT) \ FN(FRAG_TOO_FAR) \ + FN(TCP_MINTTL) \ FNe(MAX) /** @@ -313,6 +314,11 @@ enum skb_drop_reason { */ SKB_DROP_REASON_FRAG_TOO_FAR, /** + * @SKB_DROP_REASON_TCP_MINTTL: ipv4 ttl or ipv6 hoplimit below + * the threshold (IP_MINTTL or IPV6_MINHOPCOUNT). + */ + SKB_DROP_REASON_TCP_MINTTL, + /** * @SKB_DROP_REASON_MAX: the maximum of drop reason, which shouldn't be * used as a real 'reason' */ |