Example #1
0
func (p *Packet) GuessPayloadType() packet.Type {
	if p.OUI[0] == 0x00 && p.OUI[1] == 0x00 && p.OUI[2] == 0x00 {
		return eth.EtherTypeToType(p.Type)
	} else {
		return packet.Raw
	}
}
Example #2
0
func (p *Packet) GuessPayloadType() packet.Type {
	return eth.EtherTypeToType(p.Type)
}