项目作者: wwmoraes

项目描述 :
IP engineering CLI
高级语言: C++
项目地址: git://github.com/wwmoraes/subnet.git
创建时间: 2020-08-09T21:36:37Z
项目社区:https://github.com/wwmoraes/subnet

开源协议:Apache License 2.0

下载


subnet

ip engineering CLI to help work with IPv4 sub-networks

Table of Contents

" class="reference-link">About

CLI tool that provides info about a CIDR provided, or test overlaps between two
provided CIDRs.

" class="reference-link">Getting Started

Clone the repository and run make or even run the sample with make run.

Prerequisites

This is a simple and independent code, and thus requires only a C++ toolchain:

  • clang/g++
  • make
  • glibc/musl or equivalent for your OS

There’s also some phony targets to run valgrind, massif and heaptrack for performance
checks, and thus some optional dependencies:

  • valgrind
  • massif-visualizer
  • heaptrack

Installing

Currently there’s no target that installs the tool. You can copy the compiled
subnet binary to any folder on your PATH to make it available system-wide.

" class="reference-link">Usage

To get info about a CIDR use

  1. subnet 10.0.0.1/24

To check if two CIDRs overlap use

  1. subnet 10.0.0.1/24 10.0.0.1/16