miniupnpd/getifaddr.c: check if interface is up