Documentation ¶
Index ¶
- Constants
- func NewListenConfig(multi bool) net.ListenConfig
- func NewUDPStatsEmitter(udpConns []Conn) func()
- func ParseIPAndPort(s string) (net.IP, uint16, error)
- type Addr
- type AddrSlice
- type Conn
- type EncReader
- type GenericConn
- func (u *GenericConn) ListenOut(r EncReader, lhf LightHouseHandlerFunc, cache *firewall.ConntrackCacheTicker, ...)
- func (u *GenericConn) LocalAddr() (*Addr, error)
- func (u *GenericConn) Rebind() error
- func (u *GenericConn) ReloadConfig(c *config.C)
- func (u *GenericConn) WriteTo(b []byte, addr *Addr) error
- type LightHouseHandlerFunc
- type NoopConn
- type RIOConn
- func (u *RIOConn) Close() error
- func (u *RIOConn) ListenOut(r EncReader, lhf LightHouseHandlerFunc, cache *firewall.ConntrackCacheTicker, ...)
- func (u *RIOConn) LocalAddr() (*Addr, error)
- func (u *RIOConn) Rebind() error
- func (u *RIOConn) ReloadConfig(*config.C)
- func (u *RIOConn) WriteTo(buf []byte, addr *Addr) error
Constants ¶
View Source
const MTU = 9001
Variables ¶
This section is empty.
Functions ¶
func NewListenConfig ¶
func NewListenConfig(multi bool) net.ListenConfig
func NewUDPStatsEmitter ¶
func NewUDPStatsEmitter(udpConns []Conn) func()
Types ¶
type Conn ¶
type Conn interface { Rebind() error LocalAddr() (*Addr, error) ListenOut(r EncReader, lhf LightHouseHandlerFunc, cache *firewall.ConntrackCacheTicker, q int) WriteTo(b []byte, addr *Addr) error ReloadConfig(c *config.C) Close() error }
func NewGenericListener ¶ added in v1.8.0
type GenericConn ¶ added in v1.8.0
func (*GenericConn) ListenOut ¶ added in v1.8.0
func (u *GenericConn) ListenOut(r EncReader, lhf LightHouseHandlerFunc, cache *firewall.ConntrackCacheTicker, q int)
func (*GenericConn) LocalAddr ¶ added in v1.8.0
func (u *GenericConn) LocalAddr() (*Addr, error)
func (*GenericConn) Rebind ¶ added in v1.8.0
func (u *GenericConn) Rebind() error
func (*GenericConn) ReloadConfig ¶ added in v1.8.0
func (u *GenericConn) ReloadConfig(c *config.C)
type LightHouseHandlerFunc ¶
type NoopConn ¶ added in v1.8.0
type NoopConn struct{}
func (NoopConn) ListenOut ¶ added in v1.8.0
func (NoopConn) ListenOut(_ EncReader, _ LightHouseHandlerFunc, _ *firewall.ConntrackCacheTicker, _ int)
func (NoopConn) ReloadConfig ¶ added in v1.8.0
type RIOConn ¶ added in v1.8.0
type RIOConn struct {
// contains filtered or unexported fields
}
func NewRIOListener ¶ added in v1.8.0
func (*RIOConn) ListenOut ¶ added in v1.8.0
func (u *RIOConn) ListenOut(r EncReader, lhf LightHouseHandlerFunc, cache *firewall.ConntrackCacheTicker, q int)
func (*RIOConn) ReloadConfig ¶ added in v1.8.0
Click to show internal directories.
Click to hide internal directories.