java如何获取子网掩码?

java如何获取子网掩码?

要用到JDK6中的InterfaceAddress#getNetworkPrefixLength方法。InetAddress localHost = Inet4Address.getLocalHost()NetworkInterface n
Python220