[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.
This commit is contained in:
Abtin Keshavarzian
2022-03-31 21:28:10 -07:00
committed by GitHub
parent 03876128a9
commit 42eb77807d
+1
View File
@@ -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