Get the IP IPv4 address subnet mask for a host’s configured IP IPv4 address.
Files
net_ipipv4.h/net_ipipv4.c
Prototype
Arguments
addr
Configured IP IPv4 host address.
perr
p_err
Pointer to variable that will receive the return error code from this function:
NET_IPIPv4_ERR_NONE
NET_IPIPv4_ERR_INVALID_ADDR_HOST
NET_OS_ERR_LOCK
Returned Value
Configured IP IPv4 host address’s subnet mask (in host-order), if no errors.
NET_IPIPv4_ADDR_NONE
, otherwise.
Required Configuration
None.
Notes / Warnings
IP IPv4 addresses in host-order.