new function for sending ICMP responses