link_info: fix checking for link-local/private addresses