Documentation ¶
Index ¶
- type FDB
- type FDBEntry
- type Listener
- func (s *Listener) AddEP(vnid uint32, br *netlink.Bridge) error
- func (s *Listener) AddForwardEntry(vnid uint32, mac net.HardwareAddr, ip net.IP) error
- func (s *Listener) AddVLAN(vnid uint32, vlan uint16) error
- func (s *Listener) DelEP(vnid uint32) error
- func (s *Listener) DelVLAN(vnid uint32, vlan uint16) error
- func (s *Listener) ForwardingMiss(vnid uint32) (<-chan transport.ForwardingMiss, error)
- func (s *Listener) Send(ps []protocol.Packet)
- func (s *Listener) SetMTU(mtu int32) error
- func (s *Listener) SetSDN(sdn controller.Controller) error
- func (s *Listener) Start() error
- func (s *Listener) Status(vnid uint32) transport.EPStatus
- type Nic
- type Tap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FDB ¶
type FDB struct {
// contains filtered or unexported fields
}
FDB forwarding DB
func (*FDB) ListBroadcast ¶
ListBroadcast finds all broadcast dst VTEPs
type FDBEntry ¶
type FDBEntry struct {
// contains filtered or unexported fields
}
FDBEntry forwarding DB entry
type Listener ¶
type Listener struct { FDB *FDB // contains filtered or unexported fields }
Listener holds all vtep VNIs
func NewListener ¶
NewListener inits a new VTEP style listener
func (*Listener) AddForwardEntry ¶
AddForwardEntry adds an entry to the FDB
func (*Listener) ForwardingMiss ¶
func (s *Listener) ForwardingMiss(vnid uint32) (<-chan transport.ForwardingMiss, error)
ForwardingMiss gets a readonly sub for FDB misses
func (*Listener) SetSDN ¶
func (s *Listener) SetSDN(sdn controller.Controller) error
SetSDN adds the SDN controller for ip lookups
type Nic ¶
type Nic interface { Stop() error Start() Write(b []byte) (int, error) Delete() error SetHandler(protocol.HandlerFunc) IFace() netlink.Link }
Nic basic NIC that can send a receive packets to and from a compute service
type Tap ¶
type Tap struct {
// contains filtered or unexported fields
}
Tap provides communication between taps in bridges and other endpoints
func (*Tap) SetHandler ¶
func (v *Tap) SetHandler(h protocol.HandlerFunc)
SetHandler applies the listener callback for handling TX
Click to show internal directories.
Click to hide internal directories.