The compiler tells you that the candidate needs 2 params (the third one is optional. Also, see the doc for Ipv4AdressHelper). So pass those params.
In the docs you can see that Ipv4Adress
can be constructed with a char const*
. So try:
address.SetBase (ns3::Ipv4Adress(adress_string.c_str()), ns3::Ipv4Mask(mask_string.c_str()));
Changing adress_string
and mask_string
accordingly to your needs.