filter

package
v0.0.0-...-33a618f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

The filter package provides support for assembling fell formed bpf filters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	SrcIP   net.IP // The source IP address
	SrcPort int    // The source port number
	DstIp   net.IP // The destination IP address
	DstPort int    // The destination port number
}

Represents the elements that go into a very common bpf filter.

Most users can give the same filter strings that they would give to tcpdump directly to the Setfilter function.

func (*Filter) String

func (f *Filter) String() string

Given a complete Filter it generates the string form for Setfilter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL