Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PacketFilter ¶
type PacketFilter struct {
// contains filtered or unexported fields
}
PacketFilter represents wrapper for bpf filter
func (*PacketFilter) GetBpfFilter ¶
func (filter *PacketFilter) GetBpfFilter() []bpf.RawInstruction
GetBpfFilter return bpf filter
func (*PacketFilter) SetPort ¶
func (filter *PacketFilter) SetPort(port uint32)
SetPort creates new bpf filter for src and dst port
Click to show internal directories.
Click to hide internal directories.