07-get-network-and-hosts-of-an-ip-address

command
v0.0.0-...-9882766 Latest Latest
Warning

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

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

Documentation

Overview

Calculates the Prefix, and the address range for that prefix. Using bitshift and logical AND (&) to split up the uint32 to uint8.

Using logical AND (&) to get the network prefix, and logical XOR (^) to get the inverse value of the mask to calulate the range of addresses for that prefix.

Jump to

Keyboard shortcuts

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