java - Commons-net 3.3 SubnetUtils does not allow 0.0.0.0/0 -


I want to create an all-inclusive IP range in Commons-Net, but when I try

< Pre> subnotthals subnet2 = new subnet ("0.0.0.0", "0.0.0.0");

Or similar:

  Subnetthults subnet youths = new subnet utilities ("0.0.0.0.0");  

I get an exception:

  java.lang.IllegalArgumentException: value [0] no range (0,32) at org.apache.commons In .net.util.SubnetUtils.rangeCheck org.apache.commons.net.util.SubnetUtils.calculate (SubnetUtils.java:3029) at org.apache.commons.net.util.SubnetUtils. & Lt; Init & gt; (SubnetUtils.java:63)  

I have noticed that there is already a ticket for it: They say that the problem is in the next (3.4) release Has been resolved.

By the time the Commons Pure 3.4 has been released, there is any workaround (like a list of SubnetUtils objects) that Why does each IPv4 address allow?


Comments