UpdateIP

Top  Previous  Next

The UpdateIP function sets the IP address of the interface.

 

Syntax

void UpdateIP(

const char *ifname,

char *hostip,

char *mask

);

 

Parameters

ifname

Identifies the interface which IP address it to be set.  The stack only supports one ethernet interface.

The only value supported is "le0".

 

hostip

The IP address to be set.

For example: “192.168.0.1”.

 

mask

The network mask to be used.

For example: “255.255.255.0”.