From 6b60279aaf0e04a8a7f020923967153248931aed Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Tue, 13 Apr 2021 11:11:22 +0800 Subject: [PATCH] include/netinet: Add missing IP_TTL definition Signed-off-by: Huang Qi Change-Id: Ic0c4bcb840952a4ccf7f262306ba0c3d43e01811 --- include/netinet/in.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/netinet/in.h b/include/netinet/in.h index c031254e19b..68997c3272a 100644 --- a/include/netinet/in.h +++ b/include/netinet/in.h @@ -120,6 +120,9 @@ * the incoming packet */ #define IP_TOS (__SO_PROTOCOL + 13) /* Access the Type-Of-Service * (TOS) field */ +#define IP_TTL (__SO_PROTOCOL + 14) /* The IP TTL (time to live) + * of IP packets sent by the + * network stack*/ /* SOL_IPV6 protocol-level socket options. */