commit | 14dd4eb4004b2287d079b9ef14830477155d2472 | [log] [tgz] |
---|---|---|
author | William A. Kennington III <wak@google.com> | Thu Jan 12 10:51:12 2023 -0800 |
committer | William A. Kennington III <wak@google.com> | Fri Jun 02 16:19:29 2023 -0700 |
tree | 3dde660913f10c6b90e322486650504580ba1dde | |
parent | ea3aeb7a41fb24f2a57cc3d2012beec4caed7588 [diff] |
net/addr/subnet: Add class for representing a network subnet This makes it possible to represent and IPv4/IPv6 CIDR network segment via a class. Provides useful functions to compute base address and determine if addresses are inside the subnet. Change-Id: Ib9d01e28b6c8a28ccb622fef87b217fc96daf905 Signed-off-by: William A. Kennington III <wak@google.com>
stdplus is a c++ project containing commonly used classes and functions for the Linux platform. Note the goals of this project are to implement only the minimum set of features needed by the OpenBMC project and other users. You may find the included set of functions currently quite sparse.
This project provides the following primitives:
Test cases require google{test,mock}, valgrind, and lcov. It also requires the Meson Build System which can be installed following the instructions at mesonbuild.com.
For a standard release build, you want something like:
meson setup -Dexamples=false -Dtests=disabled builddir ninja -C builddir ninja -C builddir install
For a test / debug build, a typical configuration is
meson setup -Dtests=enabled builddir meson test -C builddir