handling reception of icmp packets