Diff for /embedaddon/libnet/src/libnet_build_token_ring.c between versions 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2013/07/22 11:54:42 version 1.1.1.3, 2023/09/27 11:11:38
Line 29 Line 29
  *   *
  */   */
   
#if (HAVE_CONFIG_H)#include "common.h"
#include "../include/config.h" 
#endif 
#if (!(_WIN32) || (__CYGWIN__))  
#include "../include/libnet.h" 
#else 
#include "../include/win32/libnet.h" 
#endif 
   
 libnet_ptag_t  libnet_ptag_t
 libnet_build_token_ring(uint8_t ac, uint8_t fc, const uint8_t *dst, const uint8_t *src,   libnet_build_token_ring(uint8_t ac, uint8_t fc, const uint8_t *dst, const uint8_t *src, 
Line 57  const uint8_t *payload, uint32_t payload_s, libnet_t * Line 50  const uint8_t *payload, uint32_t payload_s, libnet_t *
             !(((l->injection_type) & LIBNET_ADV_MASK)))              !(((l->injection_type) & LIBNET_ADV_MASK)))
     {      {
         snprintf(l->err_buf, LIBNET_ERRBUF_SIZE,          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__);                  __func__);
         p = NULL;          p = NULL;
         goto bad;          goto bad;
Line 126  libnet_t *l) Line 119  libnet_t *l)
             !(((l->injection_type) & LIBNET_ADV_MASK)))              !(((l->injection_type) & LIBNET_ADV_MASK)))
     {      {
         snprintf(l->err_buf, LIBNET_ERRBUF_SIZE,          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__);                           __func__);         
         p = NULL;          p = NULL;
         goto bad;          goto bad;
Line 177  bad: Line 170  bad:
     libnet_pblock_delete(l, p);      libnet_pblock_delete(l, p);
     return (-1);       return (-1); 
 }  }
/* EOF */
 /**
  * Local Variables:
  *  indent-tabs-mode: nil
  *  c-file-style: "stroustrup"
  * End:
  */

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>