Hello friends i want to write my own program which simulates "ping" command... but i was wondering how to start can anybody give me some hints like where will i find some info on how to go about it ???
pls help.
intruder
Printable View
Hello friends i want to write my own program which simulates "ping" command... but i was wondering how to start can anybody give me some hints like where will i find some info on how to go about it ???
pls help.
intruder
I take it by 'simulation' you mean one that actually pings, not just clever manipulation of strings. if this is the case, i suggest you read up on ICMP. Also, what language are you using? make sure you know how to correctly use sockets and send ICMP packets in your selected language.
www.planetsourcecode.com
has a few implementation of the ICMP protocol?
i know of one in C++ for raw sockets, and another
in Visual Basic (if win32) for ICMP using Winsock...
just goto planetsourcecode.com and search for ->
"ping icmp raw sockets" ... that should point you
in the general direction :D
I am using C on UNIX and i also know socket programming but i don't know how exactly to go about it..
is there any structure in C for the ICMP protocol ??