Documentation ¶
Index ¶
- type ARPServer
- func (server *ARPServer) FlushLinuxArpCache()
- func (server *ARPServer) GetArpEntry(ipAddr string) (arpState ArpState, err error)
- func (server *ARPServer) GetBulkArpEntry(idx int, cnt int) (int, int, []ArpState)
- func (server *ARPServer) GetBulkLinuxArpEntry(idx int, cnt int) (int, int, []ArpLinuxState)
- func (server *ARPServer) GetLinuxArpEntry(ipAddr string) (arpState ArpLinuxState, err error)
- func (server *ARPServer) InitServer(asicdPlugin asicdClient.AsicdClientIntf)
- func (server *ARPServer) SendArpProbe(port int)
- func (server *ARPServer) StartArpRxTx(ifName string, macAddr string) (*pcap.Handle, error)
- func (server *ARPServer) StartServer(asicdPlugin asicdClient.AsicdClientIntf)
- type ActionType
- type ArpActionMsg
- type ArpConf
- type ArpEntry
- type ArpLinuxEntry
- type ArpLinuxState
- type ArpState
- type AsicdMsg
- type AsicdMsgType
- type ClientJson
- type DeleteArpEntryMsg
- type DeleteResolvedIPv4
- type EventData
- type L3IntfProperty
- type LagProperty
- type PortProperty
- type ResolveIPv4
- type UpdateArpEntryMsg
- type VlanProperty
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ARPServer ¶
type ARPServer struct { AsicdSubSocketCh chan commonDefs.AsicdNotifyMsg ConfRefreshTimeout int MinRefreshTimeout int ResolveIPv4Ch chan ResolveIPv4 DeleteResolvedIPv4Ch chan DeleteResolvedIPv4 ArpConfCh chan ArpConf InitDone chan bool ArpActionCh chan ArpActionMsg AsicdPlugin asicdClient.AsicdClientIntf // contains filtered or unexported fields }
func NewARPServer ¶
func (*ARPServer) FlushLinuxArpCache ¶
func (server *ARPServer) FlushLinuxArpCache()
func (*ARPServer) GetArpEntry ¶
func (*ARPServer) GetBulkArpEntry ¶
func (*ARPServer) GetBulkLinuxArpEntry ¶
func (*ARPServer) GetLinuxArpEntry ¶
func (server *ARPServer) GetLinuxArpEntry(ipAddr string) (arpState ArpLinuxState, err error)
func (*ARPServer) InitServer ¶
func (server *ARPServer) InitServer(asicdPlugin asicdClient.AsicdClientIntf)
func (*ARPServer) SendArpProbe ¶
func (*ARPServer) StartArpRxTx ¶
func (*ARPServer) StartServer ¶
func (server *ARPServer) StartServer(asicdPlugin asicdClient.AsicdClientIntf)
type ActionType ¶
type ActionType uint8
const ( DeleteByIPAddr ActionType = 1 RefreshByIPAddr ActionType = 2 DeleteByIfName ActionType = 3 RefreshByIfName ActionType = 4 )
type ArpActionMsg ¶
type ArpActionMsg struct { Type ActionType Obj string }
type ArpLinuxEntry ¶
type ArpLinuxEntry struct { IpAddr string HWType string Flags string MacAddr string Mask string IfName string }
func GetLinuxArpCache ¶
func GetLinuxArpCache() []ArpLinuxEntry
type ArpLinuxState ¶
type AsicdMsg ¶
type AsicdMsg struct { MsgType AsicdMsgType IpAddr string MacAddr string VlanId int32 IfIdx int32 }
type AsicdMsgType ¶
type AsicdMsgType uint8
const ( Create AsicdMsgType = 1 Delete AsicdMsgType = 2 Update AsicdMsgType = 3 )
type ClientJson ¶
type DeleteArpEntryMsg ¶
type DeleteArpEntryMsg struct {
PortNum int
}
type DeleteResolvedIPv4 ¶
type DeleteResolvedIPv4 struct {
IpAddr string
}
type LagProperty ¶
type PortProperty ¶
type ResolveIPv4 ¶
type UpdateArpEntryMsg ¶
type VlanProperty ¶
Click to show internal directories.
Click to hide internal directories.