Versions in this module Expand all Collapse all v0 v0.3.1 Sep 24, 2018 Changes in this version type HostAddr + func HostFromIPStr(s string) HostAddr v0.3.0 Sep 19, 2018 Changes in this version type L4Info + func NewL4TCPInfo(p uint16) L4Info v0.2.0 Aug 27, 2018 Changes in this version + type AppAddr struct + L3 HostAddr + L4 L4Info + func NewSVCUDPAppAddr(svc HostSVC) *AppAddr + func (a *AppAddr) Copy() *AppAddr + func (a *AppAddr) Eq(o *AppAddr) bool + func (a *AppAddr) EqType(o *AppAddr) bool + func (a *AppAddr) Network() string + func (a *AppAddr) String() string type HostAddr + Eq func(HostAddr) bool type HostIPv4 + func (h HostIPv4) Eq(o HostAddr) bool type HostIPv6 + func (h HostIPv6) Eq(o HostAddr) bool type HostNone + func (h HostNone) Eq(o HostAddr) bool type HostSVC + func (h HostSVC) Eq(o HostAddr) bool type IAInt + func (iaI IAInt) String() string + type L4Info interface + Copy func() L4Info + Eq func(L4Info) bool + Port func() uint16 + Size func() int + String func() string + Type func() common.L4ProtocolType + func NewL4SCMPInfo() L4Info + func NewL4UDPInfo(p uint16) L4Info v0.1.1 Jul 31, 2018 v0.1.0 Jul 19, 2018 Changes in this version + const ASBits + const ASFmtPrefix + const BGPASBits + const ErrorBadHostAddrType + const HostLenIPv4 + const HostLenIPv6 + const HostLenNone + const HostLenSVC + const IABytes + const ISDBits + const ISDFmtPrefix + const MaxAS + const MaxBGPAS + const MaxISD + const SVCMcast + func HostEq(a, b HostAddr) bool + func HostLen(htype HostAddrType) (uint8, error) + func HostTypeCheck(t HostAddrType) bool + func IsIPv4(ip net.IP) bool + func IsIPv6(ip net.IP) bool + type AS uint64 + func ASFromFileFmt(s string, prefix bool) (AS, error) + func ASFromString(s string) (AS, error) + func (as AS) FileFmt() string + func (as AS) String() string + type HostAddr interface + Copy func() HostAddr + IP func() net.IP + Pack func() common.RawBytes + Size func() int + Type func() HostAddrType + func HostFromIP(ip net.IP) HostAddr + func HostFromRaw(b common.RawBytes, htype HostAddrType) (HostAddr, error) + type HostAddrType uint8 + const HostTypeIPv4 + const HostTypeIPv6 + const HostTypeNone + const HostTypeSVC + func (t HostAddrType) String() string + type HostIPv4 net.IP + func (h HostIPv4) Copy() HostAddr + func (h HostIPv4) IP() net.IP + func (h HostIPv4) Pack() common.RawBytes + func (h HostIPv4) Size() int + func (h HostIPv4) String() string + func (h HostIPv4) Type() HostAddrType + type HostIPv6 net.IP + func (h HostIPv6) Copy() HostAddr + func (h HostIPv6) IP() net.IP + func (h HostIPv6) Pack() common.RawBytes + func (h HostIPv6) Size() int + func (h HostIPv6) String() string + func (h HostIPv6) Type() HostAddrType + type HostNone net.IP + func (h HostNone) Copy() HostAddr + func (h HostNone) IP() net.IP + func (h HostNone) Pack() common.RawBytes + func (h HostNone) Size() int + func (h HostNone) String() string + func (h HostNone) Type() HostAddrType + type HostSVC uint16 + const SvcBS + const SvcCS + const SvcNone + const SvcPS + const SvcSB + func HostSVCFromString(str string) HostSVC + func (h HostSVC) Base() HostSVC + func (h HostSVC) Copy() HostAddr + func (h HostSVC) IP() net.IP + func (h HostSVC) IsMulticast() bool + func (h HostSVC) Multicast() HostSVC + func (h HostSVC) Pack() common.RawBytes + func (h HostSVC) Size() int + func (h HostSVC) String() string + func (h HostSVC) Type() HostAddrType + type IA struct + A AS + I ISD + func IAFromFileFmt(s string, prefixes bool) (IA, error) + func IAFromRaw(b common.RawBytes) IA + func IAFromString(s string) (IA, error) + func (ia *IA) Parse(b common.RawBytes) + func (ia *IA) UnmarshalText(text []byte) error + func (ia IA) Eq(other IA) bool + func (ia IA) FileFmt(prefixes bool) string + func (ia IA) IAInt() IAInt + func (ia IA) IsZero() bool + func (ia IA) MarshalText() ([]byte, error) + func (ia IA) String() string + func (ia IA) Write(b common.RawBytes) + type IAInt uint64 + func (iaI IAInt) IA() IA + type ISD uint16 + func ISDFromFileFmt(s string, prefix bool) (ISD, error) + func ISDFromString(s string) (ISD, error)