Documentation
¶
Index ¶
- Constants
- func NewPcapFilters() *pcapFilters
- type Addr
- type ContextKey
- type FTSTSM
- type IPcapTransformer
- func NewConnTrackTransformer(ctx context.Context, verbosity PcapVerbosity, iface *PcapIface, ...) (IPcapTransformer, error)
- func NewDebugTransformer(ctx context.Context, verbosity PcapVerbosity, iface *PcapIface, ...) (IPcapTransformer, error)
- func NewOrderedTransformer(ctx context.Context, verbosity PcapVerbosity, iface *PcapIface, ...) (IPcapTransformer, error)
- func NewTransformer(ctx context.Context, verbosity PcapVerbosity, iface *PcapIface, ...) (IPcapTransformer, error)
- type L3Proto
- type L4Proto
- type PcapEphemeralPorts
- type PcapFilters
- type PcapIface
- type PcapTransformer
- type PcapTranslator
- type PcapTranslatorFactory
- type PcapTranslatorFmt
- type PcapVerbosity
- type STSM
- type STTFM
- type TCPFlag
- type TCPFlags
- type TraceAndSpanProvider
- type TracedFlow
- type TracedFlowProvider
- type Unlock
- type UnlockWithTCPFlags
- type UnlockWithTraceAndSpan
Constants ¶
View Source
const ( ContextID = ContextKey("id") ContextLogName = ContextKey("logName") ContextVerbosity = ContextKey("verbosity") ContextDebug = ContextKey("debug") )
Variables ¶
This section is empty.
Functions ¶
func NewPcapFilters ¶
func NewPcapFilters() *pcapFilters
Types ¶
type ContextKey ¶
type ContextKey string
type IPcapTransformer ¶
type IPcapTransformer interface {
WaitDone(context.Context, *time.Duration)
Apply(context.Context, *gopacket.Packet, *uint64) error
}
func NewConnTrackTransformer ¶
func NewConnTrackTransformer( ctx context.Context, verbosity PcapVerbosity, iface *PcapIface, ephemerals *PcapEphemeralPorts, filters PcapFilters, writers []io.Writer, format *string, debug, compat bool, ) (IPcapTransformer, error)
func NewDebugTransformer ¶
func NewDebugTransformer( ctx context.Context, verbosity PcapVerbosity, iface *PcapIface, ephemerals *PcapEphemeralPorts, filters PcapFilters, writers []io.Writer, format *string, compat bool, ) (IPcapTransformer, error)
func NewOrderedTransformer ¶
func NewOrderedTransformer( ctx context.Context, verbosity PcapVerbosity, iface *PcapIface, ephemerals *PcapEphemeralPorts, filters PcapFilters, writers []io.Writer, format *string, debug, compat bool, ) (IPcapTransformer, error)
func NewTransformer ¶
func NewTransformer( ctx context.Context, verbosity PcapVerbosity, iface *PcapIface, ephemerals *PcapEphemeralPorts, filters PcapFilters, writers []io.Writer, format *string, debug, compat bool, ) (IPcapTransformer, error)
type PcapEphemeralPorts ¶
type PcapEphemeralPorts struct {
Min, Max uint16
}
type PcapFilters ¶
type PcapFilters interface {
HasL3Protos() bool
HasIPs() bool
HasIPv4s() bool
HasIPv6s() bool
HasL4Protos() bool
HasTCPflags() bool
HasL4Addrs() bool
AllowsL3Proto(*uint8) bool
AllowsIP(*netip.Addr) bool
AllowsIPv4() bool
AllowsIPv4Addr(*netip.Addr) bool
AllowsIPv4Bytes([4]byte) bool
AllowsIPv6() bool
AllowsIPv6Addr(*netip.Addr) bool
AllowsIPv6Bytes([16]byte) bool
AllowsL4Proto(*uint8) bool
AllowsTCP() bool
AllowsUDP() bool
AllowsL4Addr(*uint16) bool
AllowsAnyL4Addr(...uint16) bool
DeniesAnyL4Addr(...uint16) bool
AllowsSocket(*netip.Addr, *uint16, *netip.Addr, *uint16) bool
DeniesSocket(*netip.Addr, *uint16, *netip.Addr, *uint16) bool
AllowsAnyTCPflags(*uint8) bool
}
type PcapTransformer ¶
type PcapTransformer struct {
// contains filtered or unexported fields
}
type PcapTranslator ¶
type PcapTranslator interface {
// contains filtered or unexported methods
}
type PcapTranslatorFactory ¶
type PcapTranslatorFactory = func( context.Context, bool, PcapVerbosity, *PcapIface, *PcapEphemeralPorts, ) PcapTranslator
type PcapTranslatorFmt ¶
type PcapTranslatorFmt uint8
const ( TEXT PcapTranslatorFmt = iota JSON PROTO )
type PcapVerbosity ¶
type PcapVerbosity uint8
const ( VERBOSITY_INFO PcapVerbosity = iota VERBOSITY_DEBUG )
type STTFM ¶
type STTFM = *skipmap.Uint32Map[*TracedFlow] // SequenceTo[TracedFlow]Map
type TraceAndSpanProvider ¶
type TracedFlow ¶
type TracedFlow struct {
// contains filtered or unexported fields
}
type TracedFlowProvider ¶
type TracedFlowProvider = func(*uint32) (*TracedFlow, bool)
type UnlockWithTCPFlags ¶
Click to show internal directories.
Click to hide internal directories.