Diff for /embedaddon/libnet/sample/libnet_test.h between versions 1.1 and 1.1.1.2

version 1.1, 2012/02/21 22:14:23 version 1.1.1.2, 2023/09/27 11:11:38
Line 1 Line 1
 /*  /*
  *  $Id$  
  *  
  *  libnet_test.h   *  libnet_test.h
  *   *
  *  Copyright (c) 1998 - 2001 Mike D. Schiffman <mike@infonexus.com>   *  Copyright (c) 1998 - 2001 Mike D. Schiffman <mike@infonexus.com>
Line 9 Line 7
 #ifndef __LIBNET_TEST_H  #ifndef __LIBNET_TEST_H
 #define __LIBNET_TEST_H  #define __LIBNET_TEST_H
   
#ifndef _WIN32#if (HAVE_CONFIG_H)
 #include "../include/config.h"
 #endif
 
 #include "../include/libnet.h"  #include "../include/libnet.h"
#else
#include "../include/win32/libnet.h"#if !defined(__WIN32__)
#include "../include/win32/getopt.h"# include <netinet/in.h>
 #endif  #endif
   
 #define libnet_timersub(tvp, uvp, vvp)                                  \  #define libnet_timersub(tvp, uvp, vvp)                                  \
Line 40  u_char org_code[3] = {0x00, 0x00, 0x00}; Line 41  u_char org_code[3] = {0x00, 0x00, 0x00};
 void usage(char *);  void usage(char *);
   
 #if defined(__WIN32__)  #if defined(__WIN32__)
#include <win32/getopt.h>  #include <getopt.h>  /* For non-MingW, this is a local libnet/win32/getopt.h */
#include <winsock2.h>  #include <winsock2.h>
#include <ws2tcpip.h>  #include <ws2tcpip.h>
#ifndef _WIN32
#include <sys/time.h>  #ifndef _MSC_VER
#endif  #include <sys/time.h>
#if defined(__GNUC__)         /* mingw compiler */  #endif
extern __attribute__((dllimport)) char *optarg;
#else   /* assume msvc */// FIXME: weido... see #define LIBNET_API __declspec(dllexport) in win32/libnet.h...
#ifndef _WIN32//#if defined(__GNUC__)         /* mingw compiler */
extern __dllspec(dllimport) char *optarg;//extern __attribute__((dllimport)) char *optarg;
#endif//#else   /* assume msvc */
#endif//extern __dllspec(dllimport) char *optarg;
 //#endif
   
 #endif  /* __WIN32__ */  #endif  /* __WIN32__ */
   
 #endif  /* __LIBNET_TEST_H */  #endif  /* __LIBNET_TEST_H */
   
 /* EOF */  

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


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