Lets say I have this:
SubnetUtils utils = new SubnetUtils("192.168.1.0/24");
utils.getInfo().getNetmask() // = 255.255.255.0
Is there a easy way of getting the mask inverted (Cisco ACL style)?
eg.: 0.0.0.255
Lets say I have this:
SubnetUtils utils = new SubnetUtils("192.168.1.0/24");
utils.getInfo().getNetmask() // = 255.255.255.0
Is there a easy way of getting the mask inverted (Cisco ACL style)?
eg.: 0.0.0.255
Copyright © 2021 Jogjafile Inc.
I put up a code that might work for your case. However, maybe there is a library that does it in a more optimized way?