Skip to content

A terminal based, adhoc, multi target icmp-echo tool.

Notifications You must be signed in to change notification settings

martintopholm/xping

Repository files navigation

xping

xping is a simple PING program continiously probing multiple hosts using ICMP-ECHO. As packets are received dots are printed on the screen. Hosts not responding before next packet is due will get a questionmark in the display:

       192.0.2.1 .....................................
       192.0.2.2 ????.????????????.???.?.?............
       192.0.2.3 .....................................
       192.0.2.4 .....................................

It is similar to the second visual display in "my traceroute's" (aka mtr) and provide a way to spot subtle availability changes.

Binary packages

Prebuilt amd64 binary packages for Debian and Arch Linux are available from http://martin.topholm.eu/pub/xping .

Previously APT and pacman repositories were maintained as well, but these are now deprecated.

Building

xping hasn't surrendered to autoconf yet, but it should build on Linux, FreeBSD and OSX. There are a few options in the Makefile that can be enabled by uncommenting them. OSX users with Terminal.app may wish to use ncurses.

xping depends on libevent, if you don't have it you can uncomment the "static linking" option in the Makefile to have it downloaded and linked static into xping. OSX doesn't use -lrt, but may need -Wno-deprecated-declarations in order to build WITH_SSL.

vi Makefile
make
make install

N.B. xping will be installed set-uid because most platforms requires superuser privileges to open RAW sockets. xping drops the privileges when it has opened the sockets.

Changes

v1.4.2

  • fix segfault in http module

v1.4.1

  • fix resource leaks in http module
  • fix stalled http transfers

v1.4.0

  • add openssl support (see -DWITH_SSL in Makefile)
  • add colorsupport for results
  • fixed missed packet checking before -c count limit
  • fix startup bell for -aa

v1.3.1

  • fix icmp sequence number wrap
  • fix for http, treat code 200-399 as successful

v1.3

  • http client probe
  • label width adjustment
  • marking of replys arriving after timeout
  • only open raw socket when needed

v1.2

  • unprivileged icmp-unpriv module
  • split out icmp function in seperate module
  • ui improvements (selective updates, disable local-echo)
  • probe count (to limit execution)
  • report generation (when stdout is a file)

v1.1

  • replaced BSD queue.h with utlist.h by Troy D. Hanson
  • improved dns lookup
  • dynamic linking
  • target list from stdin
  • edge detection
  • raw ansi as alternative to ncurses

v1.0

  • hash table lookup
  • ipv6

Authors

xping was written by Martin Topholm.

xping uses libevent2 by Niels Provos and Nick Mathewson, and uthash and utlist by Troy D. Hanson.

About

A terminal based, adhoc, multi target icmp-echo tool.

Resources

Stars

Watchers

Forks

Packages

No packages published