Ping sweep

en_7123's Avatar, Join Date: Feb 2010
Ambitious contributor
Does any one know a link for code in c to do a ping sweep in which you could say give the start Ip and end ip on a lan.
for e.g START I/P 10.225.225.1
end I/P 10.225.225.20
The program performs a ping on all the machines and returns with IP of those from which it got a reply.Going through previous posts I can see some one was working on it but no code was there.If any one has a link.
lipun4u's Avatar, Join Date: Jan 2010
Light Poster
on which platform windows or linux ??
en_7123's Avatar, Join Date: Feb 2010
Ambitious contributor
Quote:
Originally Posted by lipun4u View Post
on which platform windows or linux ??
I'm using Linux(fedora)
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
With over 4 billion possible email addresses such a program would take forever to execute. The TCP/IP designers already thought of that; lookup BROADCAST messages.