luci: go.chromium.org/luci/machine-db/common Index | Files

package common

import "go.chromium.org/luci/machine-db/common"

Package common contains common Machine Database functions.

Package common contains common Machine Database functions.

Index

Package Files

ips.go mac_addresses.go

Constants

const MaxMAC48 = MAC48(1<<48 - 1)

MaxMAC48 is the largest possible MAC-48 address.

type IPv4 Uses

type IPv4 uint32

IPv4 represents an IPv4 address.

func IPv4Range Uses

func IPv4Range(block string) (IPv4, int64, error)

IPv4Range returns the starting address and length of the given IPv4 CIDR block.

func ParseIPv4 Uses

func ParseIPv4(s string) (IPv4, error)

ParseIPv4 returns an IPv4 address from the given string.

func (IPv4) String Uses

func (i IPv4) String() string

String returns a string representation of this IPv4 address.

type MAC48 Uses

type MAC48 uint64

MAC48 represents a MAC-48 address.

func ParseMAC48 Uses

func ParseMAC48(mac48 string) (MAC48, error)

ParseMAC48 returns a MAC-48 address from the given string.

func (MAC48) String Uses

func (m MAC48) String() string

String returns a string representation of this MAC-48 address.

Package common imports 3 packages (graph). Updated 2018-10-24. Refresh now. Tools for package owners.