unsigned ctl_net_is_autoip_address(CTL_NET_IPv4_ADDR_t addr);

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/16 prefix) with subnet mask

Thread Safety

ctl_net_is_autoip_address is thread-safe.