#include <sys/types.h> #include <sys/socket.h>
int s = socket(PF_NET, SOCK_RAW, IPPROTO_ICMP); if (s == -1) { perror("raw socket():"); exit(1); }