From a190d56a53d74e78c599f1197473b0ff1d8eb86f Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 23 Jan 2026 10:10:19 -0400 Subject: [PATCH] MT#55283 save TOS in socket struct Change-Id: Id9ad98ac39b2ba043f5c4465f04f42c98f89e3a7 --- lib/socket.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/socket.h b/lib/socket.h index c3b2d3571..406ea0d00 100644 --- a/lib/socket.h +++ b/lib/socket.h @@ -106,6 +106,7 @@ struct socket { sockfamily_t *family; endpoint_t local; endpoint_t remote; + unsigned int tos; }; @@ -367,6 +368,7 @@ INLINE bool endpoint_parse_any_str(endpoint_t *d, str *s) { INLINE void set_tos(socket_t *s, unsigned int tos) { s->family->tos(s, tos); + s->tos = tos; } INLINE void set_pmtu_disc(socket_t *s, int opt) { if (s->family->pmtu_disc)