A-35
A4
C.10 netmask
The netmask procedure is used to read/modify the netmask. If static_ip_mode
is set TRUE, then the Edevice will use a static IP (see the static_ip_mode func-
tion) and will need a netmask and gateway IP.
struct Netmask_Parms {
unsigned
int
action;
unsigned
char
netmask[4];
};
struct Netmask_Resp {
unsigned
int
error;
unsigned
char
netmask[4];
};
Netmask_Resp netmask (Netmask_Parms) = 10;
The action value determines whether the client wishes to execute a read of the
current setting, or a modification of the current value.
action = 0 = read of current value
action = 1 = modify current value
If the action value is other than 0 or 1, then an error value of 5 is returned.
If the RPC message is of insufficient length to satisfy the required length, an
error value of 1 is returned.
The netmask must be exactly 4-bytes in length. An error of 5 is returned and
the current netmask is unchanged if the netmask is determined to be invalid.
The returned Netmask_Resp structure will always contain the current netmask,
irrespective of the error value.
* Note that the IP will only be used if Static IP is selected.
error Meaning
0
No error
1
Syntax error
5
Parameter error