Skip to content
Search

Ping

lastmod 2024-05-31created 2015-11-048 edits

A command that sends ICMP (Internet Control Message Protocol) packets to a specified target host and checks the communication status based on the responses received.

Install

sudo apt-get install iputils-ping

Command-line flasg

  • -s: Sets the packet size.
  • -q: Shows only the summary.
  • -i: Sets the interval (delay).
  • -c: Specifies the number of packets.
  • -b: Sends packets to all hosts on the same network as the server running the ping test.

Tutorials

Making our own ping

  1. A short (and mostly wrong) history of computer networking
  2. Windows dynamic libraries, calling conventions, and transmute
  3. FFI-safe types in Rust, newtypes and MaybeUninit
  4. Designing and implementing a safer API on top of LoadLibrary
  5. A simple ping library, parsing strings into IPv4 address
  6. The builder pattern, and a macro that keeps FFI code DRY
  7. Finding the default network interface through WMI
  8. Binding C APIs with variable-length structs and UTF-16
  9. Consuming Ethernet frames with the nom crate
  10. Improving error handling - panics vs. proper errors
  11. Parsing IPv4 packets, including numbers smaller than bytes
  12. Parsing and serializing ICMP packets with cookie-factory
  13. Crafting ARP packets to find a remote host's MAC address
  14. Crafting ICMP-bearing IPv4 packets with the help of bitvec

Tutorials

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

Most likely filtered by a firewall (e.g. iptables) or similar.

See also

Favorite site

References


  1. Fasterthanli.me-20201112.zip ↩

author Zer0 sitemap