Synopsis
unsigned ctl_net_is_autoip_address(CTL_NET_IPv4_ADDR_t addr);
Description

ctl_net_is_autoip_address determines whether addr is a IPv4 link-local Auto-IP address on the local subnet. ctl_net_is_autoip_address returns non-zero if addr is an Auto-IP address on the local subnet and zero if not.

Auto-IP addresses are defined by RFC 3927 to be the range 169.254.0.0—169.254.255.255 (169.254/16 prefix) with subnet mask 255.255.0.0.

Thread Safety

ctl_net_is_autoip_address is thread-safe.