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>
Showing
- include/linux/skbuff.h 1 addition, 1 deletioninclude/linux/skbuff.h
- include/linux/tcp.h 2 additions, 1 deletioninclude/linux/tcp.h
- include/uapi/linux/tcp.h 1 addition, 0 deletionsinclude/uapi/linux/tcp.h
- net/core/dev.c 1 addition, 1 deletionnet/core/dev.c
- net/core/skbuff.c 4 additions, 2 deletionsnet/core/skbuff.c
- net/ipv4/tcp.c 17 additions, 1 deletionnet/ipv4/tcp.c
- net/ipv4/tcp_input.c 8 additions, 8 deletionsnet/ipv4/tcp_input.c
Please register or sign in to comment