Documentation ¶
Index ¶
- Constants
- func GetVtepIPAddressFrom(ipAddr string, networkPrefix int) (net.IP, error)
- type Attributes
- type Interface
- func (i *Interface) AddFDB(ipAddress net.IP, hwAddr string) error
- func (i *Interface) AddRoutes(gwIP, srcIP net.IP, tableID int, destCIDRs ...net.IPNet) error
- func (i *Interface) ConfigureIPAddress(ipAddress net.IP, mask net.IPMask) error
- func (i *Interface) DelFDB(ipAddress net.IP, hwAddr string) error
- func (i *Interface) DelRoutes(tableID int, destCIDRs ...net.IPNet) error
- func (i *Interface) DeleteLinkDevice() error
- func (i *Interface) SetupLink() error
Constants ¶
View Source
const MTUOverhead = 50
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attributes ¶
type Interface ¶
type Interface struct {
// contains filtered or unexported fields
}
func NewInterface ¶
func NewInterface(attrs *Attributes, netLink netlinkAPI.Interface) (*Interface, error)
func (*Interface) ConfigureIPAddress ¶
func (*Interface) DeleteLinkDevice ¶
Click to show internal directories.
Click to hide internal directories.