Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conf ¶
type Conf struct {
IfName string
MTU int
Addresses []*netlink.Addr
Routes []*netlink.Route
Rules []*netlink.Rule
Neighs []*netlink.Neigh
SysCtl [][]string
}
Conf indicates network devices configures.
type IPVlanConf ¶
IPVlanConf is interface config for IPVlan slaves.
type VlanConfig ¶
type VlanConfig struct {
MasterName string
IfName string
Vid int
MTU int
HardwareAddr net.HardwareAddr
}
VlanConfig is interface config of vlan slave.
Click to show internal directories.
Click to hide internal directories.