use getifaddrs() but keep ability to use SIOCGIFCONF
add record function