Documentation ¶
Index ¶
Constants ¶
View Source
const (
MaxStackDepth = 50
)
Variables ¶
View Source
var Version string = "version unknown"
Version is the pwru version and is set at compile time via LDFLAGS-
Functions ¶
func ConfigBPFMap ¶
Types ¶
type FilterCfg ¶ added in v0.0.2
type FilterCfg struct { FilterNetns uint32 FilterMark uint32 //Filter l3 FilterIPv6 uint8 FilterSrcIP [16]byte FilterDstIP [16]byte //Filter l4 FilterProto uint8 FilterSrcPort uint16 FilterDstPort uint16 //TODO: if there are more options later, then you can consider using a bit map OutputRelativeTS uint8 OutputMeta uint8 OutputTuple uint8 OutputSkb uint8 OutputStack uint8 Pad byte }
type Flags ¶
type Flags struct { ShowVersion bool KernelBTF string FilterNetns uint32 FilterMark uint32 FilterFunc string FilterProto string FilterSrcIP string FilterDstIP string FilterSrcPort uint16 FilterDstPort uint16 OutputRelativeTS bool OutputMeta bool OutputTuple bool OutputSkb bool OutputStack bool OutputLimitLines uint64 PerCPUBuffer int KMods []string }
type StackData ¶ added in v0.0.2
type StackData struct {
IPs [MaxStackDepth]uint64
}
Click to show internal directories.
Click to hide internal directories.