decoder

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2016 License: Apache-2.0 Imports: 8 Imported by: 202

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecoderStruct

type DecoderStruct struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(
	datalink layers.LinkType,
	icmp4 icmp.ICMPv4Processor,
	icmp6 icmp.ICMPv6Processor,
	tcp tcp.Processor,
	udp udp.Processor,
) (*DecoderStruct, error)

Creates and returns a new DecoderStruct.

func (*DecoderStruct) AddLayer

func (d *DecoderStruct) AddLayer(layer gopacket.DecodingLayer)

func (*DecoderStruct) AddLayers

func (d *DecoderStruct) AddLayers(layers []gopacket.DecodingLayer)

func (*DecoderStruct) DecodePacketData

func (d *DecoderStruct) DecodePacketData(data []byte, ci *gopacket.CaptureInfo)

func (*DecoderStruct) SetTruncated

func (d *DecoderStruct) SetTruncated()

Jump to

Keyboard shortcuts

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