Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Prefix ¶
network stuct based on netip.Prefix to add custom methods
func (Prefix) BroadcastAddr ¶
broadcast address of the network ex. 192.168.20.15/23 -> 192.168.21.255
func (Prefix) Hosts ¶
list of all hosts in the network (smaller mask bits take exponitially more time)
func (Prefix) HostsCount ¶
count hosts in 0(1) time complexity
Click to show internal directories.
Click to hide internal directories.