aboutsummaryrefslogtreecommitdiffstats
path: root/config.h.win32
Commit message (Collapse)AuthorAgeFilesLines
* Configure whether we have WinPcap based on whether WINPCAP_VERSION isGuy Harris2003-10-101-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | set in the config.nmake file. Configure whether we have pcap_findalldevs() based on whether WINPCAP_VERSION is 2.3 (if so, we don't) or 3.0 or 3.1 (if so, we do). WinPcap 3.0 has the new libpcap declarations of "pcap_lookupnet()" and "pcap_open_live()" in which the first argument is a "const char *" rather than a "char *"; declare the functions and pointers to them appropriately based on the version of WinPcap. If we don't have pcap_findalldevs(), don't declare a pointer to it, as we don't have a declaration of pcap_if_t. We also need to refer to "pcap_freealldevs()", so make a pointer for it. "symbols[]" is a const array; make the pointer to elements in it a const pointer. Fix some typoes. svn path=/trunk/; revision=8660
* Don't wire into "config.h.win32" files an indication of whether we haveGuy Harris2003-06-121-2/+2
| | | | | | | | | | | | | | | GNU ADNS or not - set it based on whether ADNS_DIR is defined by "config.nmake", and make "config.h.win32" files that specify whether we have GNU ADNS dependent on "config.nmake". Note in "config.nmake" that: if you have GNU ADNS, ADNS_DIR should be defined as the directory in which the ADNS .lib file resides; if you don't have GNU ADNS, ADNS_DIR shouldn't be defined. svn path=/trunk/; revision=7860
* Add GNU ADNS to the Windows build environment. A precompiled DLL can beGerald Combs2003-06-021-1/+5
| | | | | | | | | | | | | | | found at http://adns.jgaa.com/ and http://www.ethereal.com/distribution/win32/development/ The modifications to the root-level config.h.win32 and Makefile.nmake may not be neccessary. svn path=/trunk/; revision=7769
* Define HAVE_NET_SNMP, as Ethereal is set up to be built with Net-SNMPGuy Harris2002-10-231-2/+3
| | | | | | | rather than UCD SNMP on Windows, and define HAVE_SOME_SNMP as per Wes Hardaker's changes to handle both Net-SNMP and UCD SNMP. svn path=/trunk/; revision=6484
* Link to libsnmp under Win32.Gerald Combs2002-10-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | In gtk/main.c and tethereal.c set MIBDIRS to <get_program_path()>\snmp\mibs so that we can drop the MIB files there, instead of the default c:\usr\... path. Add NET_SNMP_DIR to config.nmake and modify Makefile.nmake to adjust CFLAGs, ethereal_LIBS and tethereal_LIBS accordingly. Define HAVE_UCD_SNMP in config.h.win32. I tested this by creating c:\program files\ethereal\snmp\mibs and dropping in the MIB files that come with Net-SNMP. Ethereal resolved system.sysDescr.0 to "iso.3.6.1.2.1.1.1.0" under Windows. Under Linux it resolved to "SNMPv2-MIB::sysDescr.0". Ethereal.nsi still needs to be updated. A compiled version of the Net-SNMP library can be found at http://www.ethereal.com/distribution/win32/development/ svn path=/trunk/; revision=6385
* From Ulf Lamping: define HAVE_LIBZ in the top-level config.h.win32, asGuy Harris2002-09-101-2/+2
| | | | | | it's defined in the Wiretap config.h.win32. svn path=/trunk/; revision=6243
* WinPcap 2.3's <pcap.h> includes <packet32.h>, and WinPcap 2.3'sGuy Harris2002-06-231-2/+2
| | | | | | | | <packet32.h> includes <winsock2.h>; we include that rather than <winsock.h>, to avoid errors due to conflicting declarations in <winsock.h> and <winsock2.h>. svn path=/trunk/; revision=5742
* Get rid of the "--enable-snmp" option; instead, use "--with-ucdsnmp".Guy Harris2002-03-121-4/+3
| | | | | | | | | | | Make the directory option to "--with-ucdsnmp" optional. Handle "--with-ucdsnmp" similar to the way "--with-pcap" is handled. Get rid of unnecessary #defines in "packet-cops.c". Get rid of no-longer-necessary include of "dlfcn.h" in "packet-snmp.c". svn path=/trunk/; revision=4930
* Don't assume that all UNIX platforms have <iconv.h> - explicitly checkGuy Harris2001-11-021-1/+4
| | | | | | | | | | whether it's present. This puts HAVE_ICONV_H in the "config.h" file, so put in an entry for it in "config.h.win32" - an entry that doesn't define it - and get rid of the check for WIN32 in "xmlstub.h". svn path=/trunk/; revision=4124
* On Windows, use the directory in which the binary resides as theGuy Harris2001-08-211-3/+1
| | | | | | | | | | | | | | | | | | | | | | directory in which global data files are stored. If an installed binary is being run, that's the correct directory for them; if a build-tree binary is being run, the "manuf" file will be there, and you can put other data files there as well, if necessary. Do the same with plugins, except that, if there's no "plugins\\{version}" subdirectory of that directory, fall back on the default installation directory, so you at least have a place where you can put plugins for use by build-tree binaries. (Should we, instead, have the Windows build procedure create a subdirectory of the "plugins" source directory, with the plugin version number as its name, and copy the plugins there, so you'd use the build-tree plugin binaries?) Move "test_for_directory()" out of "util.c" and into "epan/filesystem.c", with the other file system access portability wrappers and convenience routines. Fix "util.h" not to declare it - or other routines moved to "epan/filesystem.c" a while ago. svn path=/trunk/; revision=3858
* On Win32, use the default installation directory for Ethereal as theGuy Harris2001-08-181-4/+3
| | | | | | | | | "standard" plugin directory, and, instead of getting PLUGIN_DIR (the *real* installation directory) from the configure script, as can be done in UNIX, attempt to get it by getting the full pathname of the currently running program and assuming it's in the installation directory. svn path=/trunk/; revision=3850
* Fix AC_ETHEREAL_PCAP_CHECK so that, if a directory was specified withGuy Harris2001-07-271-2/+1
| | | | | | | | | | | | | | | | | "--with-pcap", it adds the "include" subdirectory of that directory to the list of directories to search for include files, rather than adding the directory itself. Check whether libpcap defines "pcap_version", and define HAVE_PCAP_VERSION if it does. Use "pcap_version" iff HAVE_PCAP_VERSION is defined, rather than special-casing MacOS X. Don't #define a string for the WinPcap version; just leave HAVE_PCAP_VERSION undefined on Windows, as WinPcap 2.2beta is out, so we can no longer assume that the Windows version of Ethereal is using WinPcap 2.1. svn path=/trunk/; revision=3792
* Windows+MSVC lacks "strptime()", so we need to include "strptime.h" toGuy Harris2001-06-021-1/+2
| | | | | | declare our version of it. svn path=/trunk/; revision=3502
* Base HAVE_PLUGINS on whether "g_module_supported()" returns TRUE, not onGuy Harris2001-05-011-4/+1
| | | | | | | whether there's a "dlfcn.h" header file; that lets us support plugins on HP-UX. svn path=/trunk/; revision=3390
* Win32 build fix, show "0.5.2 (WinPcap 2.1)" as the libpcap versionGilbert Ramirez2001-04-051-2/+3
| | | | | | | for Win32, and show a slightly more informative (i.e., geared to the user) help message when trying to capture without having WinPcap installed. svn path=/trunk/; revision=3261
* Use sed in the Win32 build to place the version in various files.Gilbert Ramirez2001-04-051-2/+2
| | | | | | | | We us $(VERSION), defined in the top-level config.nmake, to replace @VERSION@ in various files. $(RC_VERSION) and $(WTAP_VERSION) are similarly used. svn path=/trunk/; revision=3258
* Move version to 0.8.16.Gilbert Ramirez2001-03-051-4/+4
| | | | | | | Fix build for splitting build dir from src dir. Note the use of updated GTK+ release for Win32 binaries. svn path=/trunk/; revision=3107
* Change version numbers to 0.8.15Gilbert Ramirez2001-01-121-3/+3
| | | | svn path=/trunk/; revision=2882
* Move Win32 version to 0.8.14.1Gilbert Ramirez2000-11-281-3/+3
| | | | svn path=/trunk/; revision=2705
* Generated Bison and Flex files test whether __STDC__ is definedGuy Harris2000-11-221-1/+18
| | | | | | | | | | | | | | | | | in order to check whether to use ANSI C features such as "const". GCC defines it as 1 even if extensions that render the implementation non-conformant are enabled; Sun's C compiler (and, I think, other AT&T-derived C compilers) define it as 0 if extensions that render the implementation non-conformant are enabled; Microsoft Visual C++ 6.0 doesn't define it at all if extensions that render the implementation non-conformant are enabled. We define it as 0 in "config.h.win32", so that those generated files will use those features (and thus not get type warnings when compiled with MSVC++). svn path=/trunk/; revision=2698
* Move to version 0.8.14Gilbert Ramirez2000-11-201-3/+3
| | | | svn path=/trunk/; revision=2682
* Move to 0.8.13Gilbert Ramirez2000-10-271-2/+2
| | | | svn path=/trunk/; revision=2540
* Move to version 0.8.13.Gilbert Ramirez2000-10-271-2/+2
| | | | | | Mention IGRP dissector in NEWS. svn path=/trunk/; revision=2539
* Make the top-level "config.h.win32" more closely resemble the top-levelGuy Harris2000-10-171-14/+48
| | | | | | | | | | "config.h", and update it to include stuff added to "config.h" and remove stuff removed from "config.h". Give libethereal a "config.h.win32" and make its "Makefile.nmake" file copy it to "config.h". svn path=/trunk/; revision=2504
* Move to version 0.8.12Gilbert Ramirez2000-09-141-3/+3
| | | | svn path=/trunk/; revision=2432
* Move to version 0.8.11Gilbert Ramirez2000-08-031-3/+3
| | | | svn path=/trunk/; revision=2196
* There is a <sys/stat.h> available on Win32, and, in fact, we now includeGuy Harris2000-07-311-1/+4
| | | | | | it in "util.c", so we have to define HAVE_SYS_STAT_H in Win32. svn path=/trunk/; revision=2192
* Apparently, on systems with glibc 2.2, "inet_aton()" is declared inGuy Harris2000-07-141-1/+2
| | | | | | | | | | | | | | | | | <arpa/inet.h>, but is, in some fashion, declared differently from the way we declare it in "inet_v6defs.h", but "inet_ntop()" isn't defined, so we include "inet_v6defs.h" in "inet_pton.c", which causes "inet_pton.c" not to compile as we get a collision between the two declarations. Move the declaration of "inet_aton()" to "inet_aton.h", define "NEED_INET_ATON_H" iff we didn't find "inet_aton()" in the system libraries, and include "inet_aton.h" in the callers of "inet_aton()" iff "NEED_INET_ATON_H" is defined, so that it doesn't get declared by us if "inet_aton()" is defined by a system library (which hopefully means it's declared in <arpa/inet.h> instead). svn path=/trunk/; revision=2137
* Add:Gilbert Ramirez2000-07-051-1/+2
| | | | | | | | #define strcasecmp stricmp for prefs.c svn path=/trunk/; revision=2118
* Change version to 0.8.10Gilbert Ramirez2000-07-041-3/+3
| | | | | | In gtk/Makefile.nmake, add progress_dlg.obj svn path=/trunk/; revision=2108
* Add COPS dissector (with a few fixes for compiling on Win32).Gilbert Ramirez2000-06-071-4/+6
| | | | | | | | I put the header file info in packet-cops.c since no one else uses it. Fix the version number and plugin directory in config.h.win32. svn path=/trunk/; revision=2044
* Move to version 0.8.6.Gilbert Ramirez2000-04-071-1/+1
| | | | svn path=/trunk/; revision=1812
* Update version and plugin directory.Gilbert Ramirez2000-04-051-2/+2
| | | | svn path=/trunk/; revision=1801
* Add getopt.c (from GNU libc) for use on Win32.Gilbert Ramirez2000-03-281-0/+1
| | | | | | | | Ethereal/win32 now supports command-line options. Tethereal now compiles on win32, except for the fact that I haven't put the Makefile.nmake changes in for that yet. svn path=/trunk/; revision=1758
* Integrate Ed Meaney's <emeaney@altiga.com> changes for using libpcapGilbert Ramirez2000-02-091-1/+1
| | | | | | from WinDump with Ethereal. We now have packet capturing on Win32. :) svn path=/trunk/; revision=1612
* Code changes, but not Makefile changes, for enabling plugins for Win32.Gilbert Ramirez2000-02-071-0/+1
| | | | svn path=/trunk/; revision=1605
* Merge in the final code to make Ethereal run on Win32, compiledGilbert Ramirez2000-01-151-56/+33
| | | | | | | | | | | | | | | | with MSVC 6.0 and 'nmake', the make tool that comes with MSVC. It compiles, links, and runs. It doesn't run correctly. There's a problem when reading files. I'm getting short reads. I'm not linking in zlib or libsnmp because it first needs to be debugged. I changed the plugin code to use gmodule instead of libltdl, but the Unix build still links ethereal against libltdl. I'll fix that tonight; sorry about leaving it in such a sad state, but I wanted to check in this code before I left work on a Friday night. Ethereal still works, but the building is less than optimal. svn path=/trunk/; revision=1479
* Some initial changes for win32 support, but not all.Gilbert Ramirez2000-01-101-6/+12
| | | | | | | | | | | Added lots of #ifdef HAVE_*_H wrappers. Added some #defines in config.h.win32 Check for more headers in configure.in Added prototype for inet_aton() in inet_v6defs.h. Changed "BYTE" token (i.e., #define) in ascend-gramamr.y because it conflicts with a windows definition. Use HEXBYTE instead. svn path=/trunk/; revision=1448
* Prep for the next release.Gerald Combs1999-12-221-1/+1
| | | | svn path=/trunk/; revision=1367
* Pull in some additional non-definitions, to make it match the currentGuy Harris1999-12-151-4/+44
| | | | | | "config.h" on my machine. (Should YYTEXT_POINTER be defined?) svn path=/trunk/; revision=1344
* Added support for compiling on win32 with Visual C and 'nmake'. It compiles,Gilbert Ramirez1999-07-131-0/+63
but does not link. Perhaps someone who understands the MS tools can help out. I made it link a few months ago, but with different version of glib/gtk+. I can't remember how I made it link. Most of the compatibility issues were resolved with adding #ifdef HAVE_UNISTD_H the the source code. Please be sure to add this to all future code. svn path=/trunk/; revision=359