overlap

command module
v0.0.0-...-6a91cf6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2022 License: MPL-2.0 Imports: 4 Imported by: 0

README

overlap

overlap is an application that evaluates the relation between two CIDRs.

The relations can be:

  • subset: if the network of the first address includes the second one
  • superset: if the network of the first address is included in the second one
  • different: if the two networks are not overlapping
  • same: if both address are in the same network

The program is only intended to work with IPv4 addresses.

installation

go install github.com/SokaDance/overlap@latest

examples

$> ./overlap 10.0.0.0/20 10.0.2.0/24
subset
$> ./overlap 10.0.2.0/24 10.0.0.0/20
superset
$> ./overlap 10.0.2.0/24 10.0.3.0/24
different
$> ./overlap 10.0.2.0/24 10.0.2.10/24
same

Documentation

Overview

*****************************************************************************

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

*****************************************************************************

Directories

Path Synopsis
internal
network
***************************************************************************** This Source Code Form is subject to the terms of the Mozilla Public License, v.
***************************************************************************** This Source Code Form is subject to the terms of the Mozilla Public License, v.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL