Documentation ¶
Index ¶
- func IsSrc(ctx *layerContext, tcp *layers.TCP) bool
- func ProcessEthernet(ctx *Context, eth *layers.Ethernet) error
- func ProcessIPv4(ctx *Context, ip4 *layers.IPv4) error
- func ProcessIPv6(ctx *Context, ip6 *layers.IPv6) error
- func ProcessLoopback(ctx *Context, loop *layers.Loopback) error
- func ProcessTCPFlow(ctx *Context) error
- func ProcessUDP(ctx *Context, udp *layers.UDP) error
- type Context
- type FlowInfo
- type LayerInfo
- type TcpDiagnostic
- type TraceTable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func NewContext(ci *gopacket.CaptureInfo) *Context
func (*Context) GetLayerContext ¶
type FlowInfo ¶
type FlowInfo struct { Addr string `json:"address"` DupBytes uint64 `json:"-"` // Missed packets? OooBytes uint64 `json:"-"` HdrBytes uint64 `json:"-"` PayBytes uint64 `json:"-"` FlowHash uint64 `json:"-"` WinSize uint32 `json:"winSize"` DupPackets uint64 `json:"-"` Packets uint64 `json:"packets"` Bps uint64 `json:"-"` Per uint64 `json:"-"` Pps uint64 `json:"pps"` Rtt time.Duration `json:"-"` PrettyBps string `json:"bps"` PrettyHdrBytes string `json:"hdrBytes"` PrettyPayBytes string `json:"appBytes"` PrettyRtt string `json:"rtt"` // contains filtered or unexported fields }
type TcpDiagnostic ¶
type TcpDiagnostic struct { }
func (*TcpDiagnostic) ProcessLayer ¶
func (t *TcpDiagnostic) ProcessLayer(ctx *Context, lyr gopacket.DecodingLayer) error
Packet func ProcessTCP(ctx *Context, tcp *layers.TCP) error {
type TraceTable ¶
func (*TraceTable) GetLayerInfo ¶
func (*TraceTable) Update ¶
func (t *TraceTable) Update(ctx *Context)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.