Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
 This “ping” program only needs to support IPv4 and ICMPv4, not IPv6 and ICMPv6.
You may use the “ping” program from the “Unix Network Programming” textbook
as the starting point for your implementation. If you do so, please remove the IPv6
and ICMPv6 related code from the textbook “ping” program.
 This “ping” program should be multi-threaded. Instead of sending the “ping”
probes (i.e. ICMP echo requests) from an alarm signal handler, this program should
use one thread to send ICMP echo requests and another thread to receive ICMP
echo replies.
 The IP TTL should be set to 32 for every ICMP echo request sent by this program.
 Your submission should be self-sufficient and not depend on any source code or
library that are not available from a standard Linux distribution.

Submission


The implementation should be in C/C++ on Linux.



 README: A file that:
o describes what each program does and how to compile and run the programs;
o provides all the references (besides textbooks/lectures) where you get help.
 Source code
 Makefile: “make” should compile all your programs.
 RESULTS: A file that contains the sample output of each program.

You need to submit all these files in a single zip file.
Posted
Updated 17-Nov-15 20:58pm
v2
Comments
Jochen Arndt 18-Nov-15 2:43am    
Nobody here will do your homework for you.

But if someone would do it, what would you state at
"provides all the references (besides textbooks/lectures) where you get help"?

Would you write: I was too lazy, asked it at CodeProject, and some guy wrote it for me?
Member 12148637 18-Nov-15 2:46am    
just answer it
Jochen Arndt 18-Nov-15 2:50am    
Answer what?
You did not ask a question. You just passed over your homework assignment.

1 solution

This is your own homework and you have to do it yourself (ask here just specific questions when you're stuck). As a side note, there are many, many (did I say 'many'?) tutorials available on C/C++ socket programming on Linux (an I bet you could easily find a ping implementation example).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900