--- embedaddon/libnet/src/libnet_build_arp.c 2013/07/22 11:54:42 1.1.1.2 +++ embedaddon/libnet/src/libnet_build_arp.c 2023/09/27 11:11:38 1.1.1.3 @@ -1,5 +1,5 @@ /* - * $Id: libnet_build_arp.c,v 1.1.1.2 2013/07/22 11:54:42 misho Exp $ + * $Id: libnet_build_arp.c,v 1.1.1.3 2023/09/27 11:11:38 misho Exp $ * * libnet * libnet_build_arp.c - ARP packet assembler @@ -30,14 +30,7 @@ * */ -#if (HAVE_CONFIG_H) -#include "../include/config.h" -#endif -#if (!(_WIN32) || (__CYGWIN__)) -#include "../include/libnet.h" -#else -#include "../include/win32/libnet.h" -#endif +#include "common.h" libnet_ptag_t @@ -116,7 +109,7 @@ bad: libnet_ptag_t libnet_autobuild_arp(uint16_t op, const uint8_t *sha, const uint8_t *spa, const uint8_t *tha, -uint8_t *tpa, libnet_t *l) +const uint8_t *tpa, libnet_t *l) { u_short hrd; @@ -131,7 +124,7 @@ uint8_t *tpa, libnet_t *l) default: hrd = 0; snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, - "%s(): unsupported link type\n", __func__); + "%s(): unsupported link type", __func__); return (-1); /* add other link-layers */ } @@ -152,4 +145,9 @@ uint8_t *tpa, libnet_t *l) 0)); /* libnet id */ } -/* EOF */ +/** + * Local Variables: + * indent-tabs-mode: nil + * c-file-style: "stroustrup" + * End: + */