--- embedaddon/libnet/src/libnet_build_token_ring.c 2013/07/22 11:54:42 1.1.1.2 +++ embedaddon/libnet/src/libnet_build_token_ring.c 2023/09/27 11:11:38 1.1.1.3 @@ -29,14 +29,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 libnet_build_token_ring(uint8_t ac, uint8_t fc, const uint8_t *dst, const uint8_t *src, @@ -57,7 +50,7 @@ const uint8_t *payload, uint32_t payload_s, libnet_t * !(((l->injection_type) & LIBNET_ADV_MASK))) { snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, - "%s(): called with non-link layer wire injection primitive\n", + "%s(): called with non-link layer wire injection primitive", __func__); p = NULL; goto bad; @@ -126,7 +119,7 @@ libnet_t *l) !(((l->injection_type) & LIBNET_ADV_MASK))) { snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, - "%s(): called with non-link layer wire injection primitive\n", + "%s(): called with non-link layer wire injection primitive", __func__); p = NULL; goto bad; @@ -177,4 +170,10 @@ bad: libnet_pblock_delete(l, p); return (-1); } -/* EOF */ + +/** + * Local Variables: + * indent-tabs-mode: nil + * c-file-style: "stroustrup" + * End: + */