I'm using this program to find all IP addresses of my Debian machine. Although I can remove my loopback address by using the ifa_name field of the 'ifaddrs' structure, something like
struct ifaddrs * ifAddrsStruct=NULL;
getifaddrs(&ifAddrsStruct);
if (!strcmp(ifAddrIterator->ifa_name,"lo"))
// Filter these addresses
I wanted to know is there any way I can find out, from the list of IP addresses, whether an IP address is a link-local (a network address that is intended and valid only for communications within a network segment) or not. Thanks in advance.