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

version 1.1.1.1, 2012/02/21 22:14:23 version 1.1.1.3, 2023/09/27 11:11:38
Line 16 Line 16
  * distributions including binary code include the above copyright notice and   * distributions including binary code include the above copyright notice and
  * this paragraph in its entirety in the documentation or other materials   * this paragraph in its entirety in the documentation or other materials
  * provided with the distribution, and (3) all advertising materials mentioning   * provided with the distribution, and (3) all advertising materials mentioning
 * features or use of this software display the following acknowledgement: * features or use of this software display the following acknowledgment:
  * ``This product includes software developed by the University of California,   * ``This product includes software developed by the University of California,
  * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of   * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
  * the University nor the names of its contributors may be used to endorse   * the University nor the names of its contributors may be used to endorse
Line 27 Line 27
  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.   * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */   */
   
#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 
   
   static void nosupport(libnet_t* l)
   {
       snprintf(l->err_buf, LIBNET_ERRBUF_SIZE,
               "%s(): no link support on this platform", __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 *//**
  * Local Variables:
  *  indent-tabs-mode: nil
  *  c-file-style: "stroustrup"
  * End:
  */

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


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