From 42eb77807df21608fd170f36010a338e17309fb3 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Thu, 31 Mar 2022 21:28:10 -0700 Subject: [PATCH] [ip6] copy the parsed ECN value from IPv6 msg in `MessageInfo` (#7548) This commit changes `Ip6::HandleDatagram()` so to copy the ECN value parsed from IPv6 header of the message in the accompanying `MessageInfo` data structure. --- src/core/net/ip6.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/net/ip6.cpp b/src/core/net/ip6.cpp index e340b1f58..f9cbc3409 100644 --- a/src/core/net/ip6.cpp +++ b/src/core/net/ip6.cpp @@ -1138,6 +1138,7 @@ start: messageInfo.SetPeerAddr(header.GetSource()); messageInfo.SetSockAddr(header.GetDestination()); messageInfo.SetHopLimit(header.GetHopLimit()); + messageInfo.SetEcn(header.GetEcn()); messageInfo.SetLinkInfo(aLinkMessageInfo); // determine destination of packet