internal

package
v0.0.0-...-497ccf4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Endianness = binary.BigEndian

	// We use Class-E network space for fake IPs, which gives us the ability to
	// have up to 268435454 addresses in-flight (much more than we can
	// realistically cache anyway). Class-E is reserved for research, so there
	// aren't any real Internet services listening on any of these addresses.
	MinIP = IPStringToInt("240.0.0.1") // begin of Class-E network

	// MaxIP is the end of Class-E network
	MaxIP = IPStringToInt("255.255.255.254")
)

Functions

func IPStringToInt

func IPStringToInt(ip string) uint32

func IPToInt

func IPToInt(ip net.IP) uint32

func IntToIP

func IntToIP(i uint32) net.IP

Types

This section is empty.

Jump to

Keyboard shortcuts

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