move inaddr to generic ffitypes