#pragma once #include "icmp.h" // Returns -1 on error with errno. int icmp_server_open_socket(void); // Returns {.data=NULL} on error with errno. // Receives only ECHO. struct icmp_incoming icmp_server_receive(int sock); // Returns -1 on error with errno. int icmp_server_send_reply( int sock, uint32_t addr, int id, int seqnum, const void *data, size_t length);