handler

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IHandler

type IHandler interface {
	FastDetect(detectInfo *def.DetectionInfo) (error, def.ErrResultType)
	Collect(fragElem *common.FragElement, fragElemGroup *common.FragElementGroup) (error, def.ErrResultType)
	Reassembly(fragElemGroup *common.FragElementGroup, sharedLayers *common.SharedLayers) (gopacket.Packet, error, def.ErrResultType)
}

func GetHandler

func GetHandler(fragType def.FragType) IHandler

type IPV4Handler

type IPV4Handler struct{}

func (*IPV4Handler) Collect

func (t *IPV4Handler) Collect(fragElem *common.FragElement, fragElemGroup *common.FragElementGroup) (error, def.ErrResultType)

func (*IPV4Handler) FastDetect

func (t *IPV4Handler) FastDetect(detectInfo *def.DetectionInfo) (retErr error, retErrType def.ErrResultType)

func (*IPV4Handler) Reassembly

func (t *IPV4Handler) Reassembly(fragElemGroup *common.FragElementGroup,
	sharedLayers *common.SharedLayers) (gopacket.Packet, error, def.ErrResultType)

type IPV6Handler

type IPV6Handler struct{}

func (*IPV6Handler) Collect

func (t *IPV6Handler) Collect(fragElem *common.FragElement, fragElemGroup *common.FragElementGroup) (error, def.ErrResultType)

func (*IPV6Handler) FastDetect

func (t *IPV6Handler) FastDetect(detectInfo *def.DetectionInfo) (retErr error, retErrType def.ErrResultType)

func (*IPV6Handler) Reassembly

func (t *IPV6Handler) Reassembly(fragElemGroup *common.FragElementGroup,
	sharedLayers *common.SharedLayers) (gopacket.Packet, error, def.ErrResultType)

Jump to

Keyboard shortcuts

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