I'd like to find all IPv6 addresses on all interfaces on a Linux server in a C++ program. I'm looking for the equivalent to GetAdaptersAddresses() on Windows.
I want to do the same as "ip -6 addr show" does. How "ip" do this ? strace didn't really enlighten me.