cosmetic: move EthernetDecoder type from types.go to ethernet_decoder.go

This commit is contained in:
Matthias Radestock committed 2015-01-20 20:35:36 +00:00
1 parent f5dc851ebe
commit 1bc27c303e
2 files changed
+7 -8

No files matched your search

+7
View File
@@ -8,6 +8,13 @@ import (
"net"
)
type EthernetDecoder struct {
eth layers.Ethernet
ip layers.IPv4
decoded []gopacket.LayerType
parser *gopacket.DecodingLayerParser
}
func NewEthernetDecoder() *EthernetDecoder {
dec := &EthernetDecoder{}
dec.parser = gopacket.NewDecodingLayerParser(layers.LayerTypeEthernet, &dec.eth, &dec.ip)