mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
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:
@@ -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 */
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user