Documentation
¶
Index ¶
Constants ¶
View Source
const PluginClass = "ipp"
PluginClass registered
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CbPacketIPv4 ¶
CbPacketIPv4 defines a callback on packet
type CbPacketIPv6 ¶
CbPacketIPv6 defines a callback on packet
type Config ¶
type Config struct {
Actions []Action
}
Config stores configuration for plugin creation
type Hooks ¶
type Hooks struct {
// contains filtered or unexported fields
}
Hooks is responsible for ip packet processing
func (*Hooks) OnPacketIPv4 ¶
func (h *Hooks) OnPacketIPv4(fn CbPacketIPv4)
OnPacketIPv4 adds a callback function on new packet
func (*Hooks) OnPacketIPv6 ¶
func (h *Hooks) OnPacketIPv6(fn CbPacketIPv6)
OnPacketIPv6 adds a callback function on new packet
Click to show internal directories.
Click to hide internal directories.