/learn-iputils

Learn the source code of the tool `ping`.

Primary LanguageC

Learn iputils

Overview

This repository contains the versions of iputils source files that I'm interested in and the notes I made for learning purpose. Because I mainly work on Ubuntu, the source code all comes from the iputils package on Launchpad. Therefore, the code in this repository belongs to the original authors and should be used under the same license. See their license on Launchpad.

Each version is in its own sub-folder. My notes are all marked with NOTE(ywen). The log messages I added are prefixed with [ywen].

Versions

  • 3%20161105-1ubuntu3: The version used on Ubuntu 18.04 (with patches applied). Corresponding tag: applied/3%2520161105-1ubuntu3.
    • I have to replace : right after the epoch version with % (as the git tag did) because make doesn't seem to like : in the file paths. It would report "multiple target patterns" errors.

How to build

  • Refer to debian/control for the build dependencies.
    • Note that the package libgnutls-openssl-dev is a virtual one that can be satisfied by installing libgnutls28-dev.
  • Run make. It takes less than 5 seconds to finish building the code.