--- embedaddon/libnet/sample/arp-new.c 2012/02/21 22:14:23 1.1.1.1 +++ embedaddon/libnet/sample/arp-new.c 2023/09/27 11:11:38 1.1.1.2 @@ -1,5 +1,5 @@ /* - * $Id: arp-new.c,v 1.1.1.1 2012/02/21 22:14:23 misho Exp $ + * $Id: arp-new.c,v 1.1.1.2 2023/09/27 11:11:38 misho Exp $ * * libnet 1.1 * Build an ARP packet @@ -31,24 +31,20 @@ */ #if (HAVE_CONFIG_H) -#if ((_WIN32) && !(__CYGWIN__)) -#include "../include/win32/config.h" -#else #include "../include/config.h" #endif -#endif #include "./libnet_test.h" int main(int argc, char *argv[]) { int c; - u_int32_t i; + uint32_t i; libnet_t *l; libnet_ptag_t t; char *device = NULL; - u_int8_t *packet; - u_int32_t packet_s; + uint8_t *packet; + uint32_t packet_s; char errbuf[LIBNET_ERRBUF_SIZE]; printf("libnet 1.1 packet shaping: ARP[link -- autobuilding ethernet]\n"); @@ -90,9 +86,9 @@ main(int argc, char *argv[]) t = libnet_autobuild_arp( ARPOP_REPLY, /* operation type */ enet_src, /* sender hardware addr */ - (u_int8_t *)&i, /* sender protocol addr */ + (uint8_t *)&i, /* sender protocol addr */ enet_dst, /* target hardware addr */ - (u_int8_t *)&i, /* target protocol addr */ + (uint8_t *)&i, /* target protocol addr */ l); /* libnet context */ if (t == -1) { @@ -141,4 +137,3 @@ bad: return (EXIT_FAILURE); } -/* EOF */