Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EtherTable ¶
type EtherTable struct { SrcIp net.IP `yaml:"src_ip"` Device string `yaml:"device"` SrcMac SelfMac `yaml:"src_mac"` DstMac SelfMac `yaml:"dst_mac"` }
func AutoGetDevices ¶
func AutoGetDevices() *EtherTable
func ReadConfig ¶
func ReadConfig(filename string) (*EtherTable, error)
func (*EtherTable) SaveConfig ¶
func (e *EtherTable) SaveConfig(filename string) error
type SelfMac ¶
type SelfMac net.HardwareAddr
func (SelfMac) HardwareAddr ¶
func (d SelfMac) HardwareAddr() net.HardwareAddr
func (SelfMac) MarshalYAML ¶
func (*SelfMac) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.