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

ns-3 library cannot recognize IPv4 address of example #1

Open
lorenzosaino opened this issue May 19, 2014 · 0 comments
Open

ns-3 library cannot recognize IPv4 address of example #1

lorenzosaino opened this issue May 19, 2014 · 0 comments

Comments

@lorenzosaino
Copy link
Member

The ns-3 example fails starting with ns-3.18, although it works fine with ns-3.16.

The issue arises when, parsing the example topology, ns-3 tries to set the property RemoteAddress of the UdpEchoClient application to 3-4-0a:00:00:06 in which 3 is the address type, 4 is the lenght in bytes of the address and 0a:00:00:06 is the actual address, i.e. 10.0.0.6.

The specific problem occurs here:

assert failed. cond="address.m_len <= Address::MAX_SIZE", file=../src/network/model/address.cc, line=274

because somehow ns-3 thinks that the address length (4) is greater than Address::MAX_SIZE which is 20. If I edit the MAX_SIZE value in address.h to, for example, 200, then the assertion passes, but UDP packets are not received by the echo server during the simulation. This however might occur because of a change in address assignments.

I noticed that between ns-3.16 and ns-3.18 the Address attribute storing the length, i.e. m_length, as well as the return type of AsInt changed from uint32_t to unit8_t but this does not seem to be issue because the string -> uint8_t conversion appears to work fine with 4 (although it would fail with 04).

@lorenzosaino lorenzosaino transferred this issue from fnss/fnss Jan 26, 2019
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

No branches or pull requests

1 participant