Documentation ¶
Index ¶
- func GetIPv4Addrs(ifname string) ([]netlink.Addr, error)
- func GetNIdFromLink(ifname string) (uint8, error)
- func IncIP(ip net.IP)
- func ParseBridgeFlag(s string) (uint16, error)
- func ParseBridgeState(s string) (int, error)
- func StringBridgeFlag(v uint16) string
- func StringBridgeState(v int) string
- func StringBridgeStates(v int, delim string) string
- func ToBroadcast(nw *net.IPNet) net.IP
- type IPGenerator
- type IPMap
- type IPMapDefaultGenerator
- type IPMapGenerator
- type IPMapIPNetGenerator
- type IPMapPoolGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNIdFromLink ¶ added in v0.2.0
func ParseBridgeFlag ¶ added in v0.4.0
func ParseBridgeState ¶ added in v0.4.0
func StringBridgeFlag ¶ added in v0.4.0
func StringBridgeState ¶ added in v0.4.0
func StringBridgeStates ¶ added in v0.4.0
Types ¶
type IPGenerator ¶
type IPGenerator struct {
// contains filtered or unexported fields
}
func NewIPGenerator ¶
func NewIPGenerator(nw *net.IPNet) *IPGenerator
func (*IPGenerator) IsBroadcast ¶
func (g *IPGenerator) IsBroadcast(ip net.IP) bool
func (*IPGenerator) Reset ¶
func (g *IPGenerator) Reset()
type IPMap ¶
type IPMap struct {
// contains filtered or unexported fields
}
IPMap
func NewIPMap ¶
func NewIPMap(generator IPMapGenerator) *IPMap
type IPMapDefaultGenerator ¶
type IPMapDefaultGenerator struct{}
Generator (default)
func NewIPMapDefaultGenerator ¶
func NewIPMapDefaultGenerator() *IPMapDefaultGenerator
type IPMapGenerator ¶
Generator interface
type IPMapIPNetGenerator ¶
type IPMapIPNetGenerator struct {
// contains filtered or unexported fields
}
Generator (tield IP Network)
func NewIPMapIPNetGenerator ¶
func NewIPMapIPNetGenerator(nw *net.IPNet) *IPMapIPNetGenerator
type IPMapPoolGenerator ¶
type IPMapPoolGenerator struct {
// contains filtered or unexported fields
}
Generator (Pool)
func NewIPMapPoolGenerator ¶
func NewIPMapPoolGenerator() *IPMapPoolGenerator
func (*IPMapPoolGenerator) Add ¶
func (m *IPMapPoolGenerator) Add(val net.IP)
func (*IPMapPoolGenerator) AddIPNet ¶
func (m *IPMapPoolGenerator) AddIPNet(nw *net.IPNet)
Click to show internal directories.
Click to hide internal directories.