--- embedaddon/libnet/sample/icmp_echo_cq.c 2012/02/21 22:14:23 1.1.1.1 +++ embedaddon/libnet/sample/icmp_echo_cq.c 2023/09/27 11:11:38 1.1.1.2 @@ -1,5 +1,5 @@ /* - * $Id: icmp_echo_cq.c,v 1.1.1.1 2012/02/21 22:14:23 misho Exp $ + * $Id: icmp_echo_cq.c,v 1.1.1.2 2023/09/27 11:11:38 misho Exp $ * * libnet 1.1 * Build ICMP_ECHO packets using the context queue interface. @@ -30,13 +30,7 @@ * */ -#if (HAVE_CONFIG_H) -#include "../include/config.h" -#endif #include "./libnet_test.h" -#ifdef __WIN32__ -#include "../include/win32/getopt.h" -#endif void usage(char *); @@ -149,7 +143,7 @@ main(int argc, char **argv) 0, /* checksum */ src_ip, /* source IP */ dst_ip, /* destination IP */ - payload, /* payload */ + (uint8_t *)payload, /* payload */ payload_s, /* payload size */ l, /* libnet handle */ 0); @@ -198,4 +192,3 @@ usage(char *name) " [-i iface] [-c count = 10]\n ", name); } -/* EOF */