Hi i really need help with problem. This problem relates to a program i am developing to ping all hosts on a network.
So far I've managed to access a PostgreSQL database to retrieve a CIDR network address e.g. 192.168.52.14/24.
I have then managed to mask the bits to get the network address.
So for e.g. above its 192.168.52.0
i now need some kind of algorithm to loop through available hosts so from.
192.168.52.0 - 192.168.52.255
I have got as far as deriving the network and separating it into an int array
so i have : ip_start[]= {192,168,52,0}
Any ideas or previous experience anyone would like to share?
Thank you very much