The ns-3 Network Simulator Project
Modify fifth.cc to support IPv6 addressing
examples/tutorial/fifth.cc is a C++ program provided for ns-3 users to simulate TCP flows. Proceed with the following steps to complete the task:
- Copy fifth.cc from examples/tutorial/fifth.cc and paste it in scratch directory.
- Modify fifth.cc in scratch directory to support IPv6 addresses. Do not remove the support of IPv4 address. Instead, provide the support of command line arguments so that the user can choose IPv4 or IPv6 addresses as desired. Let the string to pass the command line argument for IPv4 be 'v4' and for IPv6 be 'v6'.
- Run the modified fifth.cc by passing v4 and v6 as command line arguments. Attach the terminal snapshot for both the cases and send for evaluation.
- Make a patch with the modifications made in fifth.cc and send it for evaluation.
Task tags
Students who completed this task
hax0kartik