network interface: finished with getifaddrs() combined with ioctl() for VLAN