MT#55283 save TOS in socket struct

Change-Id: Id9ad98ac39b2ba043f5c4465f04f42c98f89e3a7
pull/1126/merge
Richard Fuchs 5 months ago
parent df32af138f
commit a190d56a53

@ -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)

Loading…
Cancel
Save