A simple ping library using ICMP echo requests.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 34ca507 Nov 6, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci simplify CircleCI build-cmd Oct 23, 2018
cmd Reduce function complexity Jun 17, 2018
monitor Add more tests Oct 23, 2018
.gitignore cmd/pingnet: Ping whole subnets Mar 13, 2018
LICENSE Initial commit Feb 21, 2018
README.md Add software using this library Aug 14, 2018
error.go Fix misspellings Jun 17, 2018
payload.go satisfy linter Nov 6, 2018
pinger.go Improve documentation Jun 16, 2018
receiving.go update logging Nov 6, 2018
request.go Recover from panic Sep 18, 2018
sending.go Improve error handling Jun 11, 2018

README.md

go-ping

GoDoc CircleCI Go Report Card

A simple ICMP Echo implementation, based on golang.org/x/net/icmp.

Some sample programs are provided in cmd/:

  • ping-test is a really simple ping clone
  • multiping provides an interactive TUI to ping multiple hosts
  • ping-monitor pings multiple hosts in parallel, but just prints the summary every so often
  • pingnet allows to ping every host in a CIDR range (e.g. 0.0.0.0/0 :-))

Features

  • IPv4 and IPv6 support
  • Unicast and multicast support
  • configurable retry amount and timeout duration
  • configurable payload size (and content)
  • round trip time measurement

Contribute

Simply fork and create a pull-request. We'll try to respond in a timely fashion.

Software using this library

Please create a pull request to get your software listed.

License

MIT License, Copyright (c) 2018 Digineo GmbH

https://www.digineo.de