Diff for /embedaddon/libnet/src/libnet_link_none.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/21 22:14:23 version 1.1.1.2, 2013/07/22 11:54:42
Line 36 Line 36
 #include "../include/win32/libnet.h"  #include "../include/win32/libnet.h"
 #endif  #endif
   
   static void nosupport(libnet_t* l)
   {
       snprintf(l->err_buf, LIBNET_ERRBUF_SIZE,
               "%s(): no link support on this platform\n", __func__);
   }
   
 int  int
 libnet_open_link(libnet_t *l)  libnet_open_link(libnet_t *l)
 {  {
    return (NULL);    nosupport(l);
     return -1;
 }  }
   
   
 int  int
 libnet_close_link(libnet_t *l)  libnet_close_link(libnet_t *l)
 {  {
    return (-1);    nosupport(l);
     return -1;
 }  }
   
   
 int  int
libnet_write_link(libnet_t *l, u_int8_t *packet, u_int32_t size)libnet_write_link(libnet_t *l, const uint8_t *packet, uint32_t size)
 {  {
    return (-1);    nosupport(l);
     return -1;
 }  }
   
   
 struct libnet_ether_addr *  struct libnet_ether_addr *
 libnet_get_hwaddr(libnet_t *l)  libnet_get_hwaddr(libnet_t *l)
 {  {
    return (NULL);    nosupport(l);
     return NULL;
 }  }
   
 /* EOF */  

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


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