Documentation ¶
Index ¶
- Constants
- func IPStringToVersion(s string) (int, error)
- func IPToBitlen(ip net.IP) int
- func IPToIPNet(ip net.IP, plen int) *net.IPNet
- func IPToVersion(ip net.IP) int
- func NewIFName(dev string, index uint32) string
- func ParseIFName(name string) (string, uint32, error)
- type IFAddr
- type RouteDistinguisher
- type RouteDistinguisher0
- func (r RouteDistinguisher0) AdminField() []byte
- func (r RouteDistinguisher0) Bytes() []byte
- func (r RouteDistinguisher0) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (r RouteDistinguisher0) NumberField() []byte
- func (r RouteDistinguisher0) String() string
- func (r RouteDistinguisher0) Type() RouteDistinguisherType
- type RouteDistinguisher1
- func (r RouteDistinguisher1) AdminField() []byte
- func (r RouteDistinguisher1) Bytes() []byte
- func (r RouteDistinguisher1) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (r RouteDistinguisher1) NumberField() []byte
- func (r RouteDistinguisher1) String() string
- func (r RouteDistinguisher1) Type() RouteDistinguisherType
- type RouteDistinguisher2
- func (r RouteDistinguisher2) AdminField() []byte
- func (r RouteDistinguisher2) Bytes() []byte
- func (r RouteDistinguisher2) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (r RouteDistinguisher2) NumberField() []byte
- func (r RouteDistinguisher2) String() string
- func (r RouteDistinguisher2) Type() RouteDistinguisherType
- type RouteDistinguisherNone
- func (r RouteDistinguisherNone) AdminField() []byte
- func (r RouteDistinguisherNone) Bytes() []byte
- func (r RouteDistinguisherNone) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (r RouteDistinguisherNone) NumberField() []byte
- func (r RouteDistinguisherNone) String() string
- func (r RouteDistinguisherNone) Type() RouteDistinguisherType
- type RouteDistinguisherType
- type RouterId
Constants ¶
View Source
const ( IPVER4 = 4 IPVER6 = 6 IPBITS4 = 32 IPBITS6 = 128 IPBITS_FULL = -1 )
Variables ¶
This section is empty.
Functions ¶
func IPStringToVersion ¶ added in v0.3.0
func IPToBitlen ¶
func IPToVersion ¶
Types ¶
type RouteDistinguisher ¶
type RouteDistinguisher interface { xml.Marshaler Type() RouteDistinguisherType AdminField() []byte NumberField() []byte Bytes() []byte String() string }
Route Distinguisher
func ParseRouteDistinguisher ¶
func ParseRouteDistinguisher(s string) (RouteDistinguisher, error)
type RouteDistinguisher0 ¶
type RouteDistinguisher0 [8]byte
RD (Type 0)
func ParseRouteDistinguisher0 ¶
func ParseRouteDistinguisher0(s string) (RouteDistinguisher0, error)
func (RouteDistinguisher0) AdminField ¶
func (r RouteDistinguisher0) AdminField() []byte
func (RouteDistinguisher0) Bytes ¶
func (r RouteDistinguisher0) Bytes() []byte
func (RouteDistinguisher0) MarshalXML ¶
func (r RouteDistinguisher0) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (RouteDistinguisher0) NumberField ¶
func (r RouteDistinguisher0) NumberField() []byte
func (RouteDistinguisher0) String ¶
func (r RouteDistinguisher0) String() string
func (RouteDistinguisher0) Type ¶
func (r RouteDistinguisher0) Type() RouteDistinguisherType
type RouteDistinguisher1 ¶
type RouteDistinguisher1 [8]byte
RD (Type 1)
func ParseRouteDistinguisher1 ¶
func ParseRouteDistinguisher1(s string) (RouteDistinguisher1, error)
func (RouteDistinguisher1) AdminField ¶
func (r RouteDistinguisher1) AdminField() []byte
func (RouteDistinguisher1) Bytes ¶
func (r RouteDistinguisher1) Bytes() []byte
func (RouteDistinguisher1) MarshalXML ¶
func (r RouteDistinguisher1) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (RouteDistinguisher1) NumberField ¶
func (r RouteDistinguisher1) NumberField() []byte
func (RouteDistinguisher1) String ¶
func (r RouteDistinguisher1) String() string
func (RouteDistinguisher1) Type ¶
func (r RouteDistinguisher1) Type() RouteDistinguisherType
type RouteDistinguisher2 ¶
type RouteDistinguisher2 [8]byte
RD (Type2)
func ParseRouteDistinguisher2 ¶
func ParseRouteDistinguisher2(s string) (RouteDistinguisher2, error)
func (RouteDistinguisher2) AdminField ¶
func (r RouteDistinguisher2) AdminField() []byte
func (RouteDistinguisher2) Bytes ¶
func (r RouteDistinguisher2) Bytes() []byte
func (RouteDistinguisher2) MarshalXML ¶
func (r RouteDistinguisher2) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (RouteDistinguisher2) NumberField ¶
func (r RouteDistinguisher2) NumberField() []byte
func (RouteDistinguisher2) String ¶
func (r RouteDistinguisher2) String() string
func (RouteDistinguisher2) Type ¶
func (r RouteDistinguisher2) Type() RouteDistinguisherType
type RouteDistinguisherNone ¶
type RouteDistinguisherNone struct { }
RD (NONE)
func (RouteDistinguisherNone) AdminField ¶
func (r RouteDistinguisherNone) AdminField() []byte
func (RouteDistinguisherNone) Bytes ¶
func (r RouteDistinguisherNone) Bytes() []byte
func (RouteDistinguisherNone) MarshalXML ¶
func (r RouteDistinguisherNone) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (RouteDistinguisherNone) NumberField ¶
func (r RouteDistinguisherNone) NumberField() []byte
func (RouteDistinguisherNone) String ¶
func (r RouteDistinguisherNone) String() string
func (RouteDistinguisherNone) Type ¶
func (r RouteDistinguisherNone) Type() RouteDistinguisherType
type RouteDistinguisherType ¶
type RouteDistinguisherType uint16
Route Distinguisher Type
const ( RD_TYPE_0 RouteDistinguisherType = 0 RD_TYPE_1 RouteDistinguisherType = 1 RD_TYPE_2 RouteDistinguisherType = 2 RD_TYPE_NONE RouteDistinguisherType = 65535 )
func ParseRouteDistinguisherType ¶
func ParseRouteDistinguisherType(s string) (RouteDistinguisherType, error)
func (RouteDistinguisherType) String ¶
func (v RouteDistinguisherType) String() string
Click to show internal directories.
Click to hide internal directories.