net: move ttl field into socket_conn_s struct

move ttl filed from udp_conn_s to socket_conn_s structure to make it more than just control udp.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu
2023-05-12 14:25:33 +08:00
committed by Xiang Xiao
parent b4b9a180c0
commit 1def5da221
8 changed files with 23 additions and 21 deletions
+3
View File
@@ -228,6 +228,9 @@ struct socket_conn_s
uint8_t s_tos; /* IPv4 Type of Service */
#define s_tclass s_tos /* IPv6 traffic class defination */
#if defined(CONFIG_NET_IPv4) || defined(CONFIG_NET_IPv6)
uint8_t ttl; /* Default time-to-live */
#endif
/* Connection-specific content may follow */
};