Hello.
I've started a utility to calculate a list of subnets from an IP address. It's not going to be a variable length subnet calculator.
192.168.0.0
Should be:
11000000.10101000.00000000.00000000
What's a logical way to do this?
I could create a string, and += a 1 or 0 according to whether an octet is > 128, then > 64 ... etc.
Any suggestions guys?
I've started a utility to calculate a list of subnets from an IP address. It's not going to be a variable length subnet calculator.
192.168.0.0
Should be:
11000000.10101000.00000000.00000000
What's a logical way to do this?
I could create a string, and += a 1 or 0 according to whether an octet is > 128, then > 64 ... etc.
Any suggestions guys?