func decodeUnknown(data []byte, p PacketBuilder) error {
	return errors.New("Layer type not currently supported")
}
decodeUnknown "decodes" unsupported data types by returning an error.
This decoder will thus always return a DecodeFailure layer.
package gopacket
import (
	"errors"
)
type DecodeFeedback interface {
	SetTruncated()
}
type nilDecodeFeedback struct{}
func (nilDecodeFeedback) SetTruncated() {}
var NilDecodeFeedback DecodeFeedback = nilDecodeFeedback{}
type PacketBuilder interface {
	DecodeFeedback
	AddLayer(l Layer)
	SetLinkLayer(LinkLayer)
	SetNetworkLayer(NetworkLayer)
	SetTransportLayer(TransportLayer)
	SetApplicationLayer(ApplicationLayer)
	SetErrorLayer(ErrorLayer)
	NextDecoder(next Decoder) error
	DumpPacketData()
	DecodeOptions() *DecodeOptions
}
type Decoder interface {
	Decode([]byte, PacketBuilder) error
}
type DecodeFunc func([]byte, PacketBuilder) error
func (d DecodeFunc) Decode(data []byte, p PacketBuilder) error {
	return d(data, p)
}
var DecodePayload Decoder = DecodeFunc(decodePayload)
var DecodeUnknown Decoder = DecodeFunc(decodeUnknown)
var DecodeFragment Decoder = DecodeFunc(decodeFragment)
var LayerTypeZero = RegisterLayerType(0, LayerTypeMetadata{Name: "Unknown", Decoder: DecodeUnknown})
var LayerTypeDecodeFailure = RegisterLayerType(1, LayerTypeMetadata{Name: "DecodeFailure", Decoder: DecodeUnknown})
var LayerTypePayload = RegisterLayerType(2, LayerTypeMetadata{Name: "Payload", Decoder: DecodePayload})
var LayerTypeFragment = RegisterLayerType(3, LayerTypeMetadata{Name: "Fragment", Decoder: DecodeFragment})
type DecodeFailure struct {
	data  []byte
	err   error
	stack []byte
}
func (d *DecodeFailure) Error() error { return d.err }
func (d *DecodeFailure) LayerContents() []byte { return d.data }
func (d *DecodeFailure) LayerPayload() []byte { return nil }
func (d *DecodeFailure) String() string {
	return "Packet decoding error: " + d.Error().Error()
}
func (d *DecodeFailure) Dump() (s string) {
	if d.stack != nil {
		s = string(d.stack)
	}
	return
}
func (d *DecodeFailure) LayerType() LayerType { return LayerTypeDecodeFailure }