-
Notifications
You must be signed in to change notification settings - Fork 46
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
dce-iperf Linux stack GetAddress derefferences null ptr #125
Comments
Lines 118 to 122 in 4bca774
To find a quick fix, I commented out the serverIp string computation code segment, and then replaced the line 122, with the actual server IP address i.e 10.1.1.2. So, As a temporary fix we can have this patch. But, I was thinking of why Ipv4's GetAddress(...) function works differently in LinuxStackHelper as compared to InternetStackHelper. After a bit of debugging, I arrived at this conclusion. The ns-3-dce/helper/linux-stack-helper.cc Lines 62 to 76 in 4bca774
The actual difference was between the Install function of [1] : https://www.nsnam.org/doxygen/ipv4-address-helper_8cc_source.html#l00135 This is probably the cause behind this issue. |
Suggested patch to fix: #126 |
Description of the problem
The
dce-iperf
script works fine when using theInternetStackHelper
implemented in ns-3-dev, but fails with the below error when using theLinuxStackHelper
implemented in DCE.Steps to reproduce
Run the following command to enable the Linux stack in dce-iperf
Issue Location in Code
The issue is with the line :
ns-3-dce/example/dce-iperf.cc
Line 119 in 4bca774
The
Ipv4Linux::GetAddress()
implementation cannot seem to reference the 1st index as it exceeds the size of them_interfaces
stack.The text was updated successfully, but these errors were encountered: