Skip to content

Commit

Permalink
internet: Prevent dropping CE marked Ipv{4,6} packets
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivek-anand-jain committed Jun 19, 2018
1 parent 2f3b5b6 commit adf3c28
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions RELEASE_NOTES
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Bugs fixed
- Bug 2920 - wifi: Default MaxSlrc and fragmentation threshold values differ from standard
- Bug 2924 - documentation about Peek/Dequeue usage
- Bug 2925 - wifi: MinstrelHt provides strange results at low SNR with A-MPDU enabled
- Bug 2931 - Queue Disc drops the CE marked packets

Known issues
------------
Expand Down
2 changes: 1 addition & 1 deletion src/internet/model/ipv4-queue-disc-item.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ bool
Ipv4QueueDiscItem::Mark (void)
{
NS_LOG_FUNCTION (this);
if (!m_headerAdded && (m_header.GetEcn () == Ipv4Header::ECN_ECT1 || m_header.GetEcn () == Ipv4Header::ECN_ECT0))
if (!m_headerAdded && m_header.GetEcn () != Ipv4Header::ECN_NotECT)
{
m_header.SetEcn (Ipv4Header::ECN_CE);
return true;
Expand Down
2 changes: 1 addition & 1 deletion src/internet/model/ipv6-queue-disc-item.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ bool
Ipv6QueueDiscItem::Mark (void)
{
NS_LOG_FUNCTION (this);
if (!m_headerAdded && (m_header.GetEcn () == Ipv6Header::ECN_ECT1 || m_header.GetEcn () == Ipv6Header::ECN_ECT0))
if (!m_headerAdded && m_header.GetEcn () != Ipv6Header::ECN_NotECT)
{
m_header.SetEcn (Ipv6Header::ECN_CE);
return true;
Expand Down

0 comments on commit adf3c28

Please sign in to comment.