#include <dolphin/ip.h>
#define IP_ALEN 4 // IP address length
void IPSetNetmask ( IPInterface* interface, const u8* netmask );
IPSetAddr() sets the netmask of the specified interface.
Note: To update the IP routing table,
IPRefreshRoute() must be
explicitly called afterwards.
interface |
Pointer to IPInterface to get the internet address. Use
NULL to specify the default network interface. |
netmask |
Pointer to array[IP_ALEN] of u8 that receives the netmask. |
None.