Documentation ¶
Index ¶
- Constants
- Variables
- type Control
- func (c *Control) Defcon(d uint8) uint8
- func (c *Control) DelBackendIdx(vip IP4, port uint16, udp bool)
- func (c *Control) DelMac(mac MAC)
- func (c *Control) DelNatVipRip(nat, vip, rip IP4)
- func (c *Control) DelRip(rip IP4)
- func (c *Control) Era() (uint64, uint8)
- func (c *Control) FlowQueue() (*[FLOW_STATE]byte, bool)
- func (c *Control) GlobalStats(clear bool) counters
- func (c *Control) ReadMAC(ip IP4) *MAC
- func (c *Control) SetBackendIdx(vip IP4, port uint16, udp bool, idx [8192]uint8, sticky bool, ...)
- func (c *Control) SetBackendRec(rip IP4, hwaddr MAC, vlan uint16, idx uint32, ifindex int32)
- func (c *Control) SetNatVipRip(nat, vip, rip, src IP4, iface string, vlan uint16, ifindex int, hwaddr MAC)
- func (c *Control) SetRipMac(rip IP4, mac MAC)
- func (c *Control) SetVipSettings(vip IP4, up bool)
- func (c *Control) UpdateFlow(f []byte)
- func (c *Control) VipRipPortConcurrents(vip, rip IP4, port uint16, done chan bool) chan uint64
- func (c *Control) VipRipPortCounters(vip, rip IP4, port uint16, clear bool, curr uint64) counters
- type IP4
- type IP6
- type MAC
Constants ¶
View Source
const FLOW = 12
View Source
const FLOW_STATE = FLOW + STATE
View Source
const INTERVAL = 5
View Source
const IPPROTO_TCP = 0x06
View Source
const IPPROTO_UDP = 0x11
View Source
const MAX_CPU = 256
View Source
const STATE = 32
Variables ¶
View Source
var BPF_O []byte
Functions ¶
This section is empty.
Types ¶
type Control ¶
type Control struct {
// contains filtered or unexported fields
}
func (*Control) DelNatVipRip ¶
func (*Control) GlobalStats ¶
func (*Control) SetBackendIdx ¶
func (*Control) SetBackendRec ¶
func (*Control) SetNatVipRip ¶
func (*Control) SetVipSettings ¶
func (*Control) UpdateFlow ¶
func (*Control) VipRipPortConcurrents ¶
Click to show internal directories.
Click to hide internal directories.