Extract ethernet type