AnsweredAssumed Answered

LwIP on BF537: How to obtain netmask?

Question asked by dirkjanb on Dec 20, 2015
Latest reply on Dec 21, 2015 by dirkjanb

Hi,

 

I would like to perform UDP multicast from LwIP on the BF537.

To create the multicast address, I need at least the IP address and netmask assigned by DHCP.

 

IP address can be obtained using gethostaddr() from the API.

However, for netmask or multicast address, there is no such thing.

 

Is there an easy way to do this, or should I implement my own getnetmask() function and recompile the LwIP library?

 

Kind regards,

 

DJ

Outcomes