aboutsummaryrefslogtreecommitdiffstats
path: root/acconfig.h
AgeCommit message (Collapse)AuthorFilesLines
2003-02-26From Pavel Roskin:Guy Harris1-56/+0
Get rid of acconfig.h, as it's an archaism; put descriptions into AC_DEFINE instead. That squelches some warnings from later versions of autoconf. Fix an unquoted call to AC_MSG_ERROR. Move the stuff to define HAVE_SOME_SNMP into configure.in. svn path=/trunk/; revision=7203
2003-01-02Fix Gerald's e-mail address.Guy Harris1-2/+2
svn path=/trunk/; revision=6838
2002-10-23From Wes Hardaker:Guy Harris1-1/+6
Define HAVE_SOME_SNMP if either HAVE_UCD_SNMP or HAVE_NET_SNMP is defined, and use HAVE_SOME_SNMP, rather than HAVE_UCD_SNMP, in most places when testing whether we have an SNMP library or not. Be more selective when including Net-SNMP header files. Fix up {gtk,gtk2}/main.c to do the same SNMP stuff that tethereal.c does - including the MIB stuff that gtk/main.c was doing but gtk2/main.c wasn't doing. Fix the copyright date in gtk/main.c. svn path=/trunk/; revision=6483
2002-10-22Wes Hardaker: Support NET-SNMP in addition to UCD-SNMPJörg Mayer1-1/+3
svn path=/trunk/; revision=6475
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-4/+4
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-04-08Replace "--enable-zlib" with "--with-zlib", and have it take an optionalGuy Harris1-1/+3
"=DIR" argument to specify the directory in subdirectories of which zlib's headers and libraries can be found. svn path=/trunk/; revision=5115
2002-03-12Get rid of the "--enable-snmp" option; instead, use "--with-ucdsnmp".Guy Harris1-1/+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
2002-03-10Use the "sprint_realloc_" routines in UCD SNMP 4.2.2 and later, ratherGuy Harris1-3/+1
than the "sprint_" routines in UCD and CMU SNMP; the latter routines have no bounds checking, and if you use them you cannot protect against buffer overflows. As we now require UCD SNMP 4.2.2 or later: 1) we no longer need code to support CMU SNMP; 2) we no longer need code to work around problems with UCD SNMP 4.1.1; and, as we no longer use the "sprint_" routines, we no longer need code to work around the changed API and ABI of those routines in some nonstandard versions of the UCD SNMP library. svn path=/trunk/; revision=4914
2001-12-12Work around changes made to recent Red Hat ucd-snmp packages. SeeGerald Combs1-1/+3
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=57421 for details. svn path=/trunk/; revision=4387
2001-07-27Fix AC_ETHEREAL_PCAP_CHECK so that, if a directory was specified withGuy Harris1-3/+4
"--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
2001-06-02Windows and the MSVC++ 6.0 library don't have "strptime()", so pull inGuy Harris1-2/+2
the glibc "strptime()" (modified so it doesn't require the rest of glibc), set up the configure script to check for it, and set up Makefile.am and Makefile.nmake to use it. Get rid of NEED_MKSTEMP - nothing uses it. svn path=/trunk/; revision=3500
2000-10-17Alas, we have to set HAVE_PLUGINS in the top-level configure script asGuy Harris1-1/+3
well as in the libethereal configure script. svn path=/trunk/; revision=2503
2000-10-16Give libethereal its own configuration file, and have that configurationGuy Harris1-5/+1
file, rather than the top-level Ethereal configuration file, check for "inet_aton()", "inet_pton()", and "inet_ntop()". Then make its Makefile.am include the appropriate object files if necessary. Otherwise, they don't get built and put into libethereal, and therefore attempts to link with anything in libethereal that uses them fail on platforms that lack ethem, causing the build to fail. That means a bunch of things need to be fixed to cope with libethereal having its own "config.h" file; this means removing the include of "config.h" from some libethereal header files. Move the definitions of the path names used only by "resolv.c" to "resolv.c" from "resolv.h" (so "resolv.h" doesn't need "config.h", define HAVE_PLUGINS in the configure script (so we don't have to include it in "plugins.h" to check whether HAVE_DLFCN_H is defined). Unfortunately, stuff outside libethereal needs to know PLUGIN_DIR; for now, define that in the top-level configuration file, and have Ethereal and Tethereal pass it as an argument to "epan_init()" - that should be cleaned up at some point. Remove from the top-level configure script checks for things used only in libethereal. svn path=/trunk/; revision=2498
2000-07-14Apparently, on systems with glibc 2.2, "inet_aton()" is declared inGuy Harris1-1/+3
<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
2000-01-15As we're not using the default action for AC_CHECK_LIB inGuy Harris1-1/+3
AC_ETHEREAL_PCAP_CHECK, we have to explicitly define HAVE_LIBPCAP if we find it, otherwise it doesn't get defined. svn path=/trunk/; revision=1486
2000-01-15Merge in the final code to make Ethereal run on Win32, compiledGilbert Ramirez1-1/+3
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
1999-12-28Add support for "--with-plugindir=<plugin install dir>" to configure.Gerald Combs1-1/+3
Make the default plugindir $(libdir)/ethereal/plugins/0.8. Ethereal now looks for plugins in the following directories: /usr/lib/ethereal/plugins/0.8 /usr/local/lib/ethereal/plugins/0.8 $plugindir (if different from above) $HOME/.ethereal/plugins svn path=/trunk/; revision=1382
1999-10-14Make it build on systems lacking "inet_pton()", "inet_ntop()", and aGuy Harris1-1/+3
definition of "AF_INET6". Declare those functions and, if it's not defined, define "AF_INET6" in "inet_v6defs.h", and arrange to include it if "inet_ntop()" is missing. (Systems will probably have both of them or lack both of them, and we may choose not to use the system's "inet_pton()" because it's buggy, so base the decision on whether to include "inet_v6defs.h" on whether we're using the system's "inet_ntop()" or not.) Fix some macro references in "Makefile.am" and "configure.in". svn path=/trunk/; revision=830
1999-10-06Give it a copyright notice and RCS ID.Guy Harris1-0/+25
svn path=/trunk/; revision=775
1999-07-09Added the ability to create a read-only ethereal, i.e., one thatGilbert Ramirez1-1/+0
doesn't link with libpcap, so no packet captures can be made. The "--disable-pcap" option has been added to the configure script. Docs have been updated. And the string buffer size in the simple_dialog() has been doubled so that Johan's e-mail address in the "About" dialogue window doesn't get chopped off. svn path=/trunk/; revision=351
1999-07-07Created a new protocol tree implementation and a new display filterGilbert Ramirez1-2/+0
mechanism that is built into ethereal. Wiretap is now used to read all file formats. Libpcap is used only for capturing. svn path=/trunk/; revision=342
1999-06-14Add our own "strerror()", which we use on platforms that don't have itGuy Harris1-0/+2
in the standard libraries (such as SunOS 4.x). svn path=/trunk/; revision=312
1998-11-17Add a "acinclude.m4" file that defines a "AC_ETHEREAL_STRUCT_SA_LEN"Guy Harris1-1/+1
macro (modeled after similar macros provided with "autoconf") to check whether "struct sockaddr" has an "sa_len" member, and defines or undefines "HAVE_SA_LEN" appropriately. Use it instead of "AC_LBL_SOCKADDR_SA_LEN", and use "HAVE_SA_LEN" instead of "HAVE_SOCKADDR_SA_LEN". svn path=/trunk/; revision=96
1998-11-15Back out some changes accidentally commited by the previous checkin - IGuy Harris1-1/+1
forgot that CVS, unlike Perforce, doesn't let you edit the list of files it gives you in the editor and cause those files *not* to be committed, it requires you to specify the files to be committed if you only want some files committed. svn path=/trunk/; revision=92
1998-11-15Add support to wiretap for reading Sun "snoop" capture files.Guy Harris1-1/+1
That requires that, in the packet-reading loop, we pass to the callback routine the offset in the file of a packet's data, because we can no longer compute that offset by subtracting the size of the captured packet data from the offset in the file after the data was read - "snoop" may stick padding in after the packet data to align packet headers on 4-byte boundaries. Doing that required that we arrange that we do that for "libpcap" capture files as well; the cleanest way to do that was to write our own code for reading "libpcap" capture files, rather than using the "libpcap" code to do it. Make "wtap_dispatch_cb()" and "pcap_dispatch_cb()" static to "file.c", as they're not used elsewhere. If we're using wiretap, don't define in "file.h" stuff used only when we're not using wiretap. Update the wiretap README to reflect Gilbert's and my recent changes. Clean up some memory leaks in "wiretap/lanalyzer.c" and "wiretap/ngsniffer.c", where the capture-file-format-specific data wasn't freed if the open failed. svn path=/trunk/; revision=91
1998-11-12A lengthy patch to add the wiretap library. Wiretap is not used by defaultGilbert Ramirez1-0/+3
because it is still in its infancy, but it can be compiled in optionally. The library exists in its own subdirectory ethereal/wiretap. This patch also edits all the packet-*.c files to remove the #include <pcap.h> line which is unnecessary in these files. In the ethereal code, file.c is the most heavily modified with #ifdef WITH_WIRETAP lines for the optional library. svn path=/trunk/; revision=82
1998-10-10* OSPF alignment fixes (Gerald)Gerald Combs1-0/+2
* FDDI support (Laurent, Guy) svn path=/trunk/; revision=36
1998-09-25* Ethernet manufacturer support (Laurent)Gerald Combs1-0/+2
* PPP fixes (Gerald) * Null/loopback interface support (Gerald) svn path=/trunk/; revision=25
1998-09-16Initial revisionGerald Combs1-0/+5
svn path=/trunk/; revision=2