Skip to content
/ Ping Public

A multi-threaded C program that sends ICMP msg to destination via hostname or IP every 1 second, and prints stats(packet size, rtt, loss, etc.) upon receiving packets.

Notifications You must be signed in to change notification settings

yiransii/Ping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ping

  • Compile with:

    • gcc -Wall ping.c -o ping -pthread
    • or: make ping
  • Usage:

  • If having permission issue:

    • try running as the root user
  • On MacOS, try:

    • sudo ./ping

About

A multi-threaded C program that sends ICMP msg to destination via hostname or IP every 1 second, and prints stats(packet size, rtt, loss, etc.) upon receiving packets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published