- Sussex, England
- https://luke-else.co.uk
-
Software Engineer and Student from South England
- Joined on
2022-02-07
What I am currently thinking is the idea of converting an IP address to a 32 bit integer... and then using a window which what the CIDR allows the editing of. As a result, we cna just increment…
From here, I think the best way is to look at making a function that allows for IP address incrementation given the subnet mask.
So for example we use the base network, we can create an…
The problem comes from the network spacing variable. This only specifies the spacing in the last octet that has borrowed bits. What I mean by this is that any octets before this should have a…
I have fixed the overflow now, however, the logic still isn't quite right. When I create a subnet that has more than 8 borrowed bits, the addresses aren't quite incremented in the way that I would…
Could also look at a looping over an 8 bit segment of the CIDR's borrowed bits.