--- embedaddon/libnet/src/libnet_build_link.c 2013/07/22 11:54:42 1.1.1.2 +++ embedaddon/libnet/src/libnet_build_link.c 2023/09/27 11:11:38 1.1.1.3 @@ -1,5 +1,5 @@ /* - * $Id: libnet_build_link.c,v 1.1.1.2 2013/07/22 11:54:42 misho Exp $ + * $Id: libnet_build_link.c,v 1.1.1.3 2023/09/27 11:11:38 misho Exp $ * * libnet * libnet_build_link.c - link-layer packet assembler @@ -31,16 +31,8 @@ * */ -#if (HAVE_CONFIG_H) -#include "../include/config.h" -#endif +#include "common.h" -#if (!(_WIN32) || (__CYGWIN__)) -#include "../include/libnet.h" -#else -#include "../include/win32/libnet.h" -#endif - libnet_ptag_t libnet_build_link(const uint8_t *dst, const uint8_t *src, const uint8_t *oui, uint16_t type, const uint8_t *payload, uint32_t payload_s, libnet_t *l, libnet_ptag_t ptag) @@ -60,7 +52,7 @@ const uint8_t *payload, uint32_t payload_s, libnet_t * l, ptag); } snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, - "%s(): linktype %d not supported\n", __func__, l->link_type); + "%s(): linktype %d not supported", __func__, l->link_type); return -1; } @@ -79,7 +71,13 @@ libnet_autobuild_link(const uint8_t *dst, const uint8_ LIBNET_SAP_SNAP, 0x03, org, TOKEN_RING_TYPE_IP, l)); } snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, - "%s(): linktype %d not supported\n", __func__, l->link_type); + "%s(): linktype %d not supported", __func__, l->link_type); return (-1); } +/** + * Local Variables: + * indent-tabs-mode: nil + * c-file-style: "stroustrup" + * End: + */