Bug 2374 - TapFdNetDeviceHelper
TapFdNetDeviceHelper
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: fd-net-device
ns-3.25
PC Linux
: P5 normal
Assigned To: alina
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-04-14 11:39 UTC by airremi
Modified: 2016-04-16 08:16 UTC (History)
2 users (show)

See Also:


Attachments
patch (1.31 KB, patch)
2016-04-15 17:54 UTC, Tommaso Pecorella
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description airremi 2016-04-14 11:39:11 UTC
The TapFdNetDeviceHelper does not seem to work in ns-3.25.

Running the fd-tap-ping example crashes with the error:

assert failed. cond="numberOfDots == 3", msg="Error, can not build an IPv4 address from an invalid string: ", file=../src/network/utils/ipv4-address.cc, line=68

This is likely due to the changeset 11754, that prevents from creating IPv4 addresses from empty strings (which is done in several places in the TapFdNetDeviceHelper).
Comment 1 Tommaso Pecorella 2016-04-15 17:54:33 UTC
Created attachment 2386 [details]
patch

Possible fix
Comment 2 alina 2016-04-16 08:16:26 UTC
(In reply to Tommaso Pecorella from comment #1)
> Created attachment 2386 [details]
> patch
> 
> Possible fix

Thank you airremi for reporting this bug and Tommaso for the fix.

The patch with Tommaso's fix is now committed in changeset 1b707e9dace1.