ipv4util

package
v0.1.42 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToAddr

func AddToAddr(startIP netip.Addr, add int32) (addedIP netip.Addr, err error)

AddToAddr add count IPs to IP

func Arpa added in v0.1.32

func Arpa(ip netip.Addr) string

Arpa get the Arpa version of an IP

func BinaryIP4StrToBytes

func BinaryIP4StrToBytes(ip string) (list []byte, err error)

BinaryIP4StrToBytes convert a binary IP string for an IPV4 IP to a set of 4 bytes

func BitStr4

func BitStr4(ip netip.Addr, separator string) string

BitStr4 get bit string for IPV4 IP

func IPToHexStr

func IPToHexStr(ip netip.Addr) string

IPToHexStr convert an IP4 address to a hex string

func WildCardMask

func WildCardMask(addr netip.Addr) netip.Addr

WildCardMask get mask bits available for addressing for any IP address

Types

This section is empty.

Jump to

Keyboard shortcuts

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