I am developing application that manage a plain text, containing ip address ranges.
User will be able to add/delete ip from ranges.
Example to delete ip:
Ip entered by user through a text box : 25.2.0.58
Ip Range container: 25.2.0.10 - 25.255.255.255
the Algorithm should determine whether there is in text file, a range that may contain the ip entered by the user. If so, remove it from container ip range.
Results, (using previous example )
25.2.0.10 - 25.2.0.57
25.2.0.59 - 25.255.255.255
As you can see, Ip entered by user it has been extracted from, and two
new ranges has been created.
Any Algorithm that can be able to do so?
Thanks in advance.
Jota69
User will be able to add/delete ip from ranges.
Example to delete ip:
Ip entered by user through a text box : 25.2.0.58
Ip Range container: 25.2.0.10 - 25.255.255.255
the Algorithm should determine whether there is in text file, a range that may contain the ip entered by the user. If so, remove it from container ip range.
Results, (using previous example )
25.2.0.10 - 25.2.0.57
25.2.0.59 - 25.255.255.255
As you can see, Ip entered by user it has been extracted from, and two
new ranges has been created.
Any Algorithm that can be able to do so?
Thanks in advance.
Jota69
Comment