Skip to content

Making our own ping

14 parts 4 hours 22 min #networking #rust #windows complete

When I launched my Patreon, I vowed to explain how computers work. But in 2019, computers rarely work in isolation. So let’s take the time to write a few articles about how computers talk to each other.

Start with part 1 →

14 parts

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

Articles and videos by Amos Wenger.

Support

  • Patreon
  • GitHub Sponsors
  • Discord

Follow

  • YouTube
  • Bluesky
  • Mastodon
  • LinkedIn
  • TikTok
  • Instagram
  • RSS
About Legal notice Privacy policy Terms and conditions