去除对netmask的依赖