[PATCH 2/2] iface_[gs]et_flags(): cleanup network interface handling