changed return type when receiving an icmp packet.