overlap

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

IP Overlap

IP Overlap CLI prints to STDOUT the relation between two CIDRs.
The relations can be:
• subset: if the network of the second address is included in the first one
• superset: if the network of the second address includes the first 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.

Build binary
$ go mod download
$ go build -o overlap main.go
Run
$ chmod a+x overlap
$ ./overlap  10.0.0.0/20 10.0.2.0/24
Tests
Requirements
Run tests
$ ./run_test.sh

Documentation

Overview

Package main build binaries.

Directories

Path Synopsis
Package cmd contains CLI commands.
Package cmd contains CLI commands.
internal
handler
Package handler contains CLI handler.
Package handler contains CLI handler.
processor
Package processor contains processor to get CIDRs network's relation.
Package processor contains processor to get CIDRs network's relation.

Jump to

Keyboard shortcuts

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