diff options
author | Roland Knall <roland.knall@br-automation.com> | 2014-02-25 14:05:11 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2014-08-21 03:34:02 +0000 |
commit | bed29af46db06f4bce00d8a4dab26317d4563dd3 (patch) | |
tree | 3502e7ee703097a9c7c3e067ac9e6c7b5ad9ed8a /configure.ac | |
parent | 401469880b8b98a4d42011bdf9af7fbb67c6f057 (diff) |
Extcap Capture Interface
Extcap is a plugin interface, which allows for the usage
of external capture interfaces via pipes using a predefined
configuration language which results in a graphical gui.
This implementation seeks for a generic implementation,
which results in a seamless integration with the current
system, and does add all external interfaces as simple
interfaces.
Windows Note: Due to limitations with GTK and Windows,
a gspawn-winXX-helper.exe, respective gspawn-winXX-helper-console.exe
is needed, which is part of any GTK windows installation.
The default installation directory from the build is an extcap
subdirectory underneath the run directory. The folder used by
extcap may be viewed in the folders tab of the about dialog.
The default installation directory for extcap plugins with
a pre-build or installer version of wireshark is the extcap
subdirectory underneath the main wireshark directory.
For more information see:
http://youtu.be/Nn84T506SwU
bug #9009
Also take a look in doc/extcap_example.py for a Python-example
and in extcap.pod for the arguments grammer.
Todo:
- Integrate with Qt - currently no GUI is generated, but
the interfaces are still usable
Change-Id: I4f1239b2f1ebd8b2969f73af137915f5be1ce50f
Signed-off-by: Mike Ryan <mikeryan+wireshark@lacklustre.net>
Signed-off-by: Mike Kershaw <dragorn@kismetwireless.net>
Signed-off-by: Roland Knall <rknall@gmail.com>
Reviewed-on: https://code.wireshark.org/review/359
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 044728202e..ff9c4f7fc5 100644 --- a/configure.ac +++ b/configure.ac @@ -2699,6 +2699,32 @@ CPPFLAGS="$CPPFLAGS '-DPLUGIN_INSTALL_DIR=\"\$(plugindir)\"'" PLUGIN_LIBS="" AC_SUBST(PLUGIN_LIBS) + +dnl Use extcap by default +extcapdir='${datadir}/wireshark/extcap/' +AC_ARG_WITH(extcap, + AC_HELP_STRING( [--with-extcap@<:@=DIR@:>@], + [use extcap for external capture sources (installed in DIR, if supplied) @<:@default=yes, if possible@:>@]), +[ + if test "x$withval" = "xno"; then + have_extcap=no + elif test "x$withval" = "xyes"; then + have_extcap=yes + elif test "x$withval" != "xyes"; then + have_extcap=yes + extcapdir ="$withval" + fi +],[ + have_extcap=yes +]) +AM_CONDITIONAL(HAVE_EXTCAP, test "x$have_extcap" = "xyes") +if test "x$have_extcap" = "xyes" +then + AC_DEFINE(HAVE_EXTCAP, 1, [Define if external capture sources should be enabled]) + AC_DEFINE_UNQUOTED(EXTCAP_DIR,"$extcapdir", [Directory for extcap plugins]) +fi +AC_SUBST(extcapdir) + # # Check if (emem) memory allocations must be 8-byte aligned. # I haven't been able to write C code that reliably makes that determination @@ -3079,6 +3105,7 @@ echo " Install dumpcap with capabilities : $setcap_message" echo " Install dumpcap setuid : $setuid_message" echo " Use dumpcap group : $dumpcap_group_message" echo " Use plugins : $have_plugins" +echo " Use external capture sources : $have_extcap" echo " Use Lua library : $lua_message" echo " Build rtp_player : $portaudio_message" echo " Build profile binaries : $enable_profile_build" |