my implementation of icmp echo request (ping)