Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored to ns-3.42 version #99

Open
wants to merge 2 commits into
base: app-ns-3.36+
Choose a base branch
from

Conversation

rogerio-silva
Copy link

Update for ns-3.42 Compatibility and Code Refactoring

Description:

This pull request includes several important updates to ensure compatibility with ns-3.42 and refactors some parts of the code for better functionality and alignment with the new API standards. Below is a summary of the changes:

Version: 1.1.0 - 2024-09-01

Author: rogerio-silva

Changes:

  1. Code compatibility with ns-3.42:

    • Ensured the project builds without errors on ns-3.42.
  2. Refactor of opengym-test-suite.cc:

    • Replaced deprecated usage of ns3::TestSuite::UNIT with Type::UNIT.
    • Replaced deprecated usage of ns3::TestCase::QUICK with Duration::QUICK.
    • Refactored to handle the removal of SetTos in ns3::InetSocketAddress, using a socket and setting the TOS field with SetIpTos() instead.
  3. Refactor of linear-mesh and linear-mesh-2 examples:

    • Added a socket and set the TOS field directly using SetIpTos():
      Ptr<Socket> socket = Socket::CreateSocket (srcNode, UdpSocketFactory::GetTypeId ());
      socket->SetIpTos (0x70); // AC_BE
      # ...
      source.SetAttribute ("Socket", PointerValue (socket));

These changes are crucial for keeping the code up-to-date with the latest version of ns-3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant