Commit Graph

172 Commits

Author SHA1 Message Date
Anders Broman f9981411f1 Checking in Stigs changes from
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=475
BUT not activating the check for 
pcap_create()
pcap_set_buffer_size()
This should make it possible to build with support for setting the buffersize if not capturing 802.11 traffic.

The code for handling the 'B' option should be OK in any case.

svn path=/trunk/; revision=32688
2010-05-06 18:34:30 +00:00
Anders Broman c911b0101b Check for pcap_create
Using pcap create and pcap_activate should make it possible
to set the capture buffer size on Linux systems as well as Windows.
Help to implement it would be apreciated :-)

Ref:
http://seclists.org/tcpdump/2009/q3/151

svn path=/trunk/; revision=32687
2010-05-06 15:39:08 +00:00
Guy Harris 980ac5960e Don't say "Checking for broken pcap-config" if we don't have a
pcap-config to check for brokenness.

svn path=/trunk/; revision=31919
2010-02-19 00:15:29 +00:00
Guy Harris 56cffa1135 Put in missing comma.
svn path=/trunk/; revision=31241
2009-12-11 09:11:42 +00:00
Guy Harris 488253bfe7 Add the time zone abbreviation to the result of abs_time_to_str() and
abs_time_secs_to_str().

svn path=/trunk/; revision=31234
2009-12-11 03:39:17 +00:00
Jörg Mayer b6cffe4050 - Add an AC macro to test linker flags.
- Test whether the linker supports --as-needed and if so,
  adds it to LDFLAGS

svn path=/trunk/; revision=29327
2009-08-07 18:49:24 +00:00
Guy Harris e411397ef8 Check for libpcap 1.0's broken pcap-config, which put a space between -L
and its argument - that doesn't work on some platforms (e.g., OS X).

svn path=/trunk/; revision=28664
2009-06-08 17:23:00 +00:00
Guy Harris 923b8ae800 Check for a pcap-config script (as provided by libpcap 1.x) and, if we
find it, use it to determine where to find libpcap and what additional
libraries it requires.

svn path=/trunk/; revision=28653
2009-06-08 02:12:23 +00:00
Stig Bjørlykke 31a2a3065d Don't reuse lua_dir in a for loop.
svn path=/trunk/; revision=28625
2009-06-03 15:40:12 +00:00
Stig Bjørlykke 863e456e78 Fixed setting of LUA_INCLUDES when having extraneous lua heder directory.
Fixed resetting flags after negative check for Lua.

svn path=/trunk/; revision=28624
2009-06-03 15:28:30 +00:00
Stig Bjørlykke d861a1a6dc Only give a failure message if configuring with --with-lua=yes.
svn path=/trunk/; revision=28623
2009-06-03 13:45:48 +00:00
Stig Bjørlykke 76520bcc34 Added check for extraneous lua header directories, as some systems
apparently put the headers in a "lua5.1" subdirectory.

svn path=/trunk/; revision=28622
2009-06-03 13:21:48 +00:00
Stig Bjørlykke 39d713806f Use liblua by default, if available.
svn path=/trunk/; revision=28621
2009-06-03 12:13:07 +00:00
Sebastien Tandel 52cc5fb1e8 python binding for wireshark (first commit)
* ability to write dissectors with python for wireshark.
        documentation (http://wiki.wireshark.org/Python)


svn path=/trunk/; revision=28529
2009-05-29 21:10:40 +00:00
Stig Bjørlykke 26424033d3 From Petr Sumbera (bug 3305):
Recognize Solaris Kerberos (which is based on MIT Kerberos).

svn path=/trunk/; revision=27622
2009-03-06 18:56:53 +00:00
Stephen Fisher 3a50c0063f Fix bug #3152 for good.
svn path=/trunk/; revision=27092
2008-12-23 03:25:56 +00:00
Jeff Morriss 6c81d84efc Fix bug 3152: when searching for igemacintegration manually set GTK_LIBS to
the found library (AC_SEARCH_LIBS sets the LIBS variable but we really don't
want that).

svn path=/trunk/; revision=27088
2008-12-22 16:10:14 +00:00
Guy Harris 44f8cae6ab If we don't have any of the pcap_datalink_XXX_to_YYY routines,
substitute our own (I wrote them all, so I can steal them from the
BSD-licensed libpcap if I want :-)).  This means that
linktype_name_to_val() and linktype_val_to_name() are always available,
and we don't need to #ifdef use of them.

Use pcap_datalink_val_to_description() to get the description for a
particular DLT_ value, rather than mapping the DLT_ value to a
WTAP_ENCAP_ value and getting the description for the latter.

svn path=/trunk/; revision=27074
2008-12-21 23:22:12 +00:00
Jeff Morriss 5b9a2fdd6d After checking for ige_mac_menu_set_menu_bar reset CFLAGS and LIBS
back to what they were before the test (without GTK_LIBS).
This prevents tshark (and every other program) from unnecessarily linking
against GTK_LIBS.

svn path=/trunk/; revision=27056
2008-12-19 02:48:19 +00:00
Balint Reczey 2b90b483f5 Require Lua 5.1 for Lua plugin.
This fixes bug 2510.

svn path=/trunk/; revision=26805
2008-11-18 14:55:01 +00:00
Gerald Combs 1b7064bb6a Add support for the GeoIP library. Using different database files,
GeoIP can map IP addresses to Countries, Cities, AS numbers, ISPs,
etc. If any library paths are defined AND any database files are found,
corresponding columns are added to the endpoint tables in the GUI.

To do:
  - Add columns to the conversation list
  - Add GeoIP info to "-z conv,..."
  - Create a default UAT file.

svn path=/trunk/; revision=26571
2008-10-27 04:50:57 +00:00
Stephen Fisher 812ecb21c3 Tweak Mac IGE integration detection so that it can find the functions not
only in the Gtk+ OS X framework, but also in the separate igemacintegration
library.  Also add call to ite_mac_menu_set_menu_bar() to synchronize the
OS X menu bar with the Gtk menu bar in Wireshark.  The Gtk menu bar in
Wireshark will remain there.


svn path=/trunk/; revision=26560
2008-10-26 20:09:54 +00:00
Gerald Combs e8aee91bc3 Add an option to look for the presence of Imendio's Mac OS X integration
functions in GTK+.

svn path=/trunk/; revision=26539
2008-10-24 18:08:32 +00:00
Gerald Combs 9fbab46ad4 Add support for c-ares to the GNU toolchain.
svn path=/trunk/; revision=25955
2008-08-08 00:04:38 +00:00
Guy Harris e82d99d2b4 If we have pcap_free_datalinks(), use it. If not, then, on Windows,
just leak the list returned by pcap_list_datalinks(), as there's no
guarantee that if you have a library built with one version of the
MSVC++ run-time library, and it returns a pointer to allocated data, you
can free that data from a program linked with another version of the
MSVC++ run-time library.  (This is not an issue on UN*X.)

This should fix bug 2677.

svn path=/trunk/; revision=25668
2008-07-04 03:33:00 +00:00
Guy Harris 31cae6e4ef Require GLib 2.4 or later.
That means that G_GINT64_MODIFIER will be defined, so don't check
whether it's defined.

We don't use the PRI[douxX]64 macros, as we use the GLib print routines
and thus use G_GINT64_MODIFIER instead.  Get rid of the checks for
whether inttypes.h defines PRI[douxX]64; just check whether it exists at
all.

That means we don't set INTTYPES_H_DEFINES_FORMATS, so don't check for
it.

svn path=/trunk/; revision=25243
2008-05-05 22:47:32 +00:00
Guy Harris ac59b6dc4f Don't define AC_WIRESHARK_CHECK_64BIT_FORMAT twice; just define the one
that works with GLib's print routines.  Make that version compile and
link the test programs with GLib.

svn path=/trunk/; revision=25127
2008-04-20 23:41:36 +00:00
Stephen Fisher 545d54ae74 Remove GTK1 code.
svn path=/trunk/; revision=24828
2008-04-07 04:38:59 +00:00
Guy Harris 454fbec234 Only check for pcap_breakloop()'s "usability" if it might be present but
unusable; it'd only be unusable if we require that functions be declared
before they're used (i.e., if we check for that with -Wimplicit and if
we fail if the check produces a warning because we're using -Werror). 
Always checking doesn't necessarily work if, for example, you're not
compiling with GCC, as -Werror and -Wimplicit might not be recognized by
other compilers.

svn path=/trunk/; revision=24287
2008-02-07 18:19:08 +00:00
Tomas Kukosa 08bbd29c71 Support for RPCAP features in GUI (from Boris Misenov, see Bug 1366)
- retrieving the list of remote PCAP interfaces
  - password authentication support
  - UDP data fransfer
  - packet sampling (available in WinPcap 4.x)
  etc.

fix problem if non-default rpcap port is used

svn path=/trunk/; revision=23750
2007-12-04 11:19:29 +00:00
Gerald Combs 58914b5248 If libcap is present, have dumpcap use it to drop privileges while
retaining CAP_NET_ADMIN and CAP_NET_RAW.  Update some Makefile
dependencies for dumpcap.

svn path=/trunk/; revision=23511
2007-11-20 16:53:01 +00:00
Jörg Mayer 094e2a9a5f Get rid of the remains of NET-SNMP in the build process.
svn path=/trunk/; revision=22934
2007-09-24 06:59:40 +00:00
Jaap Keuter c2dcd299c8 YAE2W
svn path=/trunk/; revision=22085
2007-06-13 05:27:32 +00:00
Ronnie Sahlberg a1d2d9c75b we dont link with g_snprintf in the configure for gtk1-2 so fall back to
snprintf instead


svn path=/trunk/; revision=21995
2007-05-29 23:29:20 +00:00
Guy Harris d2ac4f7133 Check for G_GINT64_MODIFIER in Wireshark as we do in Wiretap.
In all the places where a cast to "long long" or "unsigned long long"
was done, use G_GINT64_MODIFIER and get rid of the cast, as

	1) there's no guarantee that "%ll" works

and

	2) there's no guarantee that "long long" works

(the latter definitely does *NOT* work with MSVC++; the former doesn't
work with regular printf in MSVC++, but it might work with the GLib
printf-based functions).

svn path=/trunk/; revision=21978
2007-05-29 06:56:07 +00:00
Sebastien Tandel a265df648d update of AC_WIRESHARK_PCAP_CHECK to detect if pcap header version is
corresponding to the library version for pcap_breakloop. Issue a warning if the
pcap_breakloop is present but not usable.


svn path=/trunk/; revision=21498
2007-04-22 13:38:50 +00:00
Sebastien Tandel 706627f882 adding AC_(WIRESHARK|WIRETAP)_GCC_CFLAGS_OPTION macro to test whether gcc
supports the options passed as arguments. If the options are supported, they
are added to CFLAGS.


svn path=/trunk/; revision=21493
2007-04-22 09:27:21 +00:00
Luis Ontanon 093a98d5c0 the -lm flag might be needed to link lua
svn path=/trunk/; revision=20315
2007-01-04 22:45:43 +00:00
Jörg Mayer e26860607d Get rid of UCD SNMP support (it's not longer supported and
superseeded by net-snmp). Replace some_snmp by net_snmp
where appropriate.


svn path=/trunk/; revision=20071
2006-12-08 15:05:41 +00:00
Jeff Morriss 51143fa1ef Bug 1246: From Eric Hall, fix typo: s/NETSNMPCNFIG/NETSNMPCONFIG/
svn path=/trunk/; revision=19984
2006-11-26 08:28:09 +00:00
Jörg Mayer 6cd3bd1202 Don't include /usr/local if usage of /usr/local has been disabled via
configure option.

svn path=/trunk/; revision=19706
2006-10-26 14:50:03 +00:00
Guy Harris 11d3c15ca0 Set want_portaudio to yes if we'll be building with libportaudio; it
might have been set to ifavailable, but other parts of the configure
script expect it to be "yes" or "no" after
AC_WIRESHARK_LIBPORTAUDIO_CHECK finishes.

svn path=/trunk/; revision=19606
2006-10-19 09:16:49 +00:00
Jörg Mayer 6bdaea253b Change some messages when ucd snmp is found but --with-ssl
is missing. Also I changed the behaviour to just disable
ucd snmp in case it was requested but no --with-ssl was
given instead of bailing out with an error.

svn path=/trunk/; revision=19335
2006-09-27 11:03:22 +00:00
Guy Harris 1ae3d4e86e AC_CHECK_TYPE already prints a "checking for" message; don't bother
printing another one before calling it.

svn path=/trunk/; revision=19223
2006-09-12 20:24:42 +00:00
Jörg Mayer 72651ba02d rtp_player.c will now compile with the new API, although it will not
actually do something useful except to print that the new API is not
supported.

Adapt acinclude.m4 to provide PORTAUDIO_API_1 and add back the
check_message to indicate *why* we are checking for the type.


svn path=/trunk/; revision=19148
2006-09-05 09:17:55 +00:00
Guy Harris 6b70649f74 AC_CHECK_TYPE outputs a "Checking..." message; we don't need to issue
one ourselves.

The documentation for autoconf isn't very clear on the "includes"
argument to AC_CHECK_TYPE - it's in the form of a list of #include
statements.

svn path=/trunk/; revision=19140
2006-09-04 22:47:16 +00:00
Jörg Mayer 2b6f72aa98 After some reading it is clear that the code was written for
portaudio versions <= 18. At least Suse 10.1 provides a snapshot
of version 19, which, in turn has the brand new and incompatible
version 2.0 of the API. Change the error message to tell the
user that he needs portaudio <= 18.


svn path=/trunk/; revision=19133
2006-09-04 14:16:50 +00:00
Jörg Mayer 56934c59cb Use portaudio if it's there. Check that we have the right version.
Note: This check is currently carried out by checking that the include
defines PortAudioStream. If you know of any better check, please let
me know.

acinclude.m4:
	Replace sequences of 8 spaces by tab

svn path=/trunk/; revision=19131
2006-09-04 13:34:48 +00:00
Anders Broman 7eac3c2879 From Alejandro Vaquero:
- Change the "listen_rtp" to "rtp_player"
- Change from a plugin to be part of the core
- By default it will not compile with the rtp_player. In order to 
compile it is necessary to:
       + For windows: uncomment the line 
"PORTAUDIO_DIR=$(WIRESHARK_LIBS)\portaudio_v18_1" in config.nmake
       + For linux: using the "--with-portaudio=yes"

svn path=/trunk/; revision=19094
2006-08-30 21:51:31 +00:00
Anders Broman aa98f8dadd From Bálint Réczey
- Added support for versioned lua libnames to aclocal.m4
- create generated elua_register.h from Makefile

svn path=/trunk/; revision=18769
2006-07-19 19:20:58 +00:00