get ethertype from packet