The networking equipment company’s results were hurt by $665 million in restructuring and other charges, but still beat ...