]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: add TTL to SCM_TIMESTAMPING_OPT_STATS
authorYousuk Seung <ysseung@google.com>
Wed, 20 Jan 2021 20:41:55 +0000 (12:41 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 23 Jan 2021 02:20:52 +0000 (18:20 -0800)
commit85fe99107210e397c6a98202f60c5bd32bf3b9bc
tree46fff7a6dfc03c64cd6921452d84c0eba20e9609
parent3ca4dc3685d6d09146cd69f3755729b276da2884
tcp: add TTL to SCM_TIMESTAMPING_OPT_STATS

This patch adds TCP_NLA_TTL to SCM_TIMESTAMPING_OPT_STATS that exports
the time-to-live or hop limit of the latest incoming packet with
SCM_TSTAMP_ACK. The value exported may not be from the packet that acks
the sequence when incoming packets are aggregated. Exporting the
time-to-live or hop limit value of incoming packets helps to estimate
the hop count of the path of the flow that may change over time.

Signed-off-by: Yousuk Seung <ysseung@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Link: https://lore.kernel.org/r/20210120204155.552275-1-ysseung@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/skbuff.h
include/linux/tcp.h
include/uapi/linux/tcp.h
net/core/dev.c
net/core/skbuff.c
net/ipv4/tcp.c
net/ipv4/tcp_input.c