Commit Graph

353 Commits

Author SHA1 Message Date
Michael Tüxen 2b439f46f3 Remove all interfaces when available.
Add a missing g_strdup.

svn path=/trunk/; revision=37843
2011-06-30 11:40:50 +00:00
Stig Bjørlykke 6747aef250 Added a preference to turn of capture filter syntax check.
This can be used to disable the effect in bug 5356.

svn path=/trunk/; revision=37830
2011-06-29 10:42:29 +00:00
Michael Tüxen 043ea23beb Enable the cap_history again. It was temporary disabled a couple of hours ago.
svn path=/trunk/; revision=37803
2011-06-27 11:45:27 +00:00
Michael Tüxen 83eccec8fb Fix a bug when starting the capture without specifying an interface.
The capability history needs to be fixed.

svn path=/trunk/; revision=37795
2011-06-27 01:32:22 +00:00
Michael Tüxen 421dafd2de Get rid of old non-interface specific settings which are now interface
specifc. This finalizes the change of the infrastructure.
This patch is based on work by Irene Ruengeler.

svn path=/trunk/; revision=37794
2011-06-27 00:09:03 +00:00
Anders Broman 79e57b3666 Try to fix bug https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6029
Wireshark crashes when entering anything in capture filter textbox

svn path=/trunk/; revision=37709
2011-06-19 15:28:32 +00:00
Anders Broman 9f60fc7471 Handle deprecated GtkTooltips.
svn path=/trunk/; revision=37661
2011-06-13 15:13:39 +00:00
Anders Broman 59dc5adbc4 Make capture dialog compile with GTK3+
svn path=/trunk/; revision=37647
2011-06-10 16:27:53 +00:00
Michael Tüxen e0b054f2e2 This fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6008
Clear the list of interfaces before adding new interfaces.
Also fix an endless loop which would occur in case of an error
when getting remote interfaces.

From Irene Ruengeler.

svn path=/trunk/; revision=37618
2011-06-08 14:12:47 +00:00
Michael Tüxen 4d11bebc1d Don't limit the snaplen if not reqested.
Found by Irene Ruengeler.

svn path=/trunk/; revision=37473
2011-05-31 07:30:38 +00:00
Michael Tüxen 985a98dd1b Fix the case where you start with interfaces on the command line
(so using ifaces) and then using the GUI (which only deals with
iface).

These kind of problems will completely disappear when the
old strucuture components like iface have completely be
retired. This is the next thing we will work on.

svn path=/trunk/; revision=37345
2011-05-22 11:11:00 +00:00
Gerald Combs 40baaf4dbe We probably shouldn't call pcap-ng "experimental" any more.
svn path=/trunk/; revision=37033
2011-05-09 19:29:40 +00:00
Bill Meier b25b2cd862 Fix two unused variable assignments: Coverity 1140.
Also: fix some indentation.

svn path=/trunk/; revision=36991
2011-05-05 00:15:59 +00:00
Stig Bjørlykke de18d83f61 Initialize if_device to NULL at start and when g_free.
This fixes a bug introduced in revision 36741.

svn path=/trunk/; revision=36929
2011-04-28 08:48:35 +00:00
Guy Harris b99f04d32c Make the interface combo box an entry, so you can type in it again.
svn path=/trunk/; revision=36838
2011-04-24 19:41:28 +00:00
Guy Harris f2fe6e5dbf gtk_combo_box_new_text() returns a GtkComboBox, and you connect a
function directly to its "changed" signal; GtkComboBox is a subclass of
GtkBin, but you don't connect to its child.

svn path=/trunk/; revision=36837
2011-04-24 19:38:12 +00:00
Anders Broman c590fd1d73 Replace the capture interface deprecated gtk_combo_new() with gtk_combo_box_entry_new_text.
svn path=/trunk/; revision=36741
2011-04-20 20:17:20 +00:00
Anders Broman f80dcc2109 Replace the capture filter deprecated gtk_combo_new() with gtk_combo_box_entry_new_text,
svn path=/trunk/; revision=36718
2011-04-19 16:02:07 +00:00
Gerald Combs 9bdecea98c Fix compilation on Windows.
svn path=/trunk/; revision=35967
2011-02-16 19:26:08 +00:00
Stephen Fisher 82c78778ae More cleanup toward being able to compile with GTK+ 3.0. Mostly replacing
deprecated GtkToolTips with new functions.


svn path=/trunk/; revision=35966
2011-02-16 18:27:00 +00:00
Michael Tüxen cf46488ec4 From Irene Ruengeler: Double check that the interface specified in the
preferences still exists. If not, don't use it.

svn path=/trunk/; revision=35659
2011-01-26 15:15:20 +00:00
Bill Meier becab16f36 Fix a crash which can occur if a user hits "Capture:Options" immediately followed by "Capture:Start"
Fixes Bug #4645: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4645

Essentially: The "Capture Start" code "interrupted" the "Capture Options" code and attempted
 to use not yet initialized "Capture Options" state.

svn path=/trunk/; revision=35633
2011-01-23 20:59:12 +00:00
Bill Meier c78221d4ce Rename g_resolv_flags --> gbl_resolv_flags; Also: cleanup some whitespace & indentation.
svn path=/trunk/; revision=34487
2010-10-12 13:15:08 +00:00
Stig Bjørlykke ac7c3787b5 Explain BPF in the tooltips for "Compile BPF".
svn path=/trunk/; revision=34363
2010-10-04 11:04:13 +00:00
Sake Blok d2ea494622 Add a cast to make the OSX-PPC buildbot happy.
Removed debugging commenting-out that slipped through...


svn path=/trunk/; revision=34353
2010-10-03 19:28:05 +00:00
Sake Blok f3e94f6753 Retry of SVN 34338, now tested on my WinXP dev VM:
Use pcap_open_dead instead of pcap_create for the compile BPF button. 



svn path=/trunk/; revision=34340
2010-10-03 12:04:18 +00:00
Sake Blok a301593846 Reverting SVN 34338, looks like libpcap and winpcap are more different than I thought. I might have to set up a local windows build system again :(
svn path=/trunk/; revision=34339
2010-10-02 21:15:20 +00:00
Sake Blok 1e01a2889b Use pcap_open_dead instead of pcap_create for the compile BPF button. This makes the button available on systems which do not have libraries that have pcap_create (like Windows for example)
Change a couple of values into defined constants.


svn path=/trunk/; revision=34338
2010-10-02 20:26:09 +00:00
Bill Meier b24ef36cc0 Fix a compilation error
svn path=/trunk/; revision=34335
2010-10-02 15:15:40 +00:00
Sake Blok 3664650ead Make capture filter syntax checking independent of pcap_create by using pcap_compile_nopcap
svn path=/trunk/; revision=34333
2010-10-02 14:47:41 +00:00
Sake Blok 2ca8b0aab7 Check for HAVE_PCAP_CREATE in a few more spots to fix building on systems with a pcap-library that does not support pcap_create
svn path=/trunk/; revision=34331
2010-10-02 12:24:28 +00:00
Sake Blok 9cde3f3f20 Add syntax checking to the capture filter text entry in the capture setup screen. Since capture filters are DLT dependent, it is not useful to do syntax checking in the capture filter dialog (unless we check each filter against every possible DLT)
svn path=/trunk/; revision=34330
2010-10-02 11:29:26 +00:00
Sake Blok 34fdc9c7a9 When a user selected a non-default DLT for the interface, change the DLT to the user-selected DLT before compiling the BPF code.
svn path=/trunk/; revision=34329
2010-10-02 11:07:50 +00:00
Sake Blok 98c8dc0319 pcap_activate needs to be called to set the DLT of the selected interface, otherwise the BPF filter is compiled with a DLT of NULL, which will make a filter like "ether host 00:00:00:00:00:00" fail to compile.
svn path=/trunk/; revision=34328
2010-10-02 10:28:18 +00:00
Jeff Morriss b4c2ed1b86 Remove some unnecessary includes: a lot of things don't need globals.h and register.h
svn path=/trunk/; revision=34017
2010-08-30 16:10:01 +00:00
Bill Meier 66d340863f (Minor) Cleanup signal callbak signatures and related:
- Don't mark callback arg as _U_ if actually used (and vice-versa);
- Use Null as user_data in g_signal_callback if unused in callback;
- Use correct signature for certain event callbacks.

svn path=/trunk/; revision=33895
2010-08-23 19:29:08 +00:00
Bill Meier fa5fecf047 Change ws_combo_box... to use a tree-store instead of a list-store;
This allows the dispay of the ws_combo_box choices as a tree.
Also: Rename ws_combo_box_append_text_and_pointer_with_sensitivity() to
             ws_combo_box_append_text_and_pointer_full().

svn path=/trunk/; revision=33538
2010-07-15 15:05:39 +00:00
Bill Meier b139720101 Whitespace cleanup: consistent indentation; tabs==>spaces; etc
svn path=/trunk/; revision=33498
2010-07-13 01:38:54 +00:00
Bill Meier c76f89bf35 GtkOptionMenu ==> GtkComboBox
svn path=/trunk/; revision=33497
2010-07-13 00:46:00 +00:00
Guy Harris ba77133cbb I added PCAP_NETMASK_UNKNOWN in libpcap 1.1.0; it's not present in
1.0.0.  You're supposed to just use 0 in releases prior to 1.1.0 - in
1.1.0 and later, a netmask of PCAP_NETMASK_UNKNOWN will cause errors if
you try to use "ip broadcast" (as you need the netmask to check for
local broadcasts), but, prior to that, the netmask value is blindly used
even if the filter will always fail.

svn path=/trunk/; revision=33461
2010-07-07 01:55:34 +00:00
Jaap Keuter b87d82d0b4 Add button to look at compiled BPF.
This allows to test and experiment with BPF expressions, before launching
the capture itself. 

svn path=/trunk/; revision=33459
2010-07-06 21:02:19 +00:00
Guy Harris 342d436705 If we don't know whether a device supports monitor mode, turn off
monitor mode in the checkbox before making the checkbox insensitive.

svn path=/trunk/; revision=32829
2010-05-16 08:14:29 +00:00
Guy Harris e1e576c11b Support monitor mode in the capture preferences.
Use prefs_is_capture_device_hidden() to find out whether a device should
be hidden - don't scan the list of hidden devices ourselves.

svn path=/trunk/; revision=32820
2010-05-15 19:38:13 +00:00
Guy Harris a41f89c8f5 Fix the tooltip for the "monitor mode" checkbox.
Speak of network adapters rather than network cards (most personal
computers these days have no network cards - the network adapters are on
the motherboard).

svn path=/trunk/; revision=32810
2010-05-14 17:36:17 +00:00
Guy Harris 0ad496957f Fix compilation when we don't have pcap_create().
svn path=/trunk/; revision=32805
2010-05-14 07:48:50 +00:00
Guy Harris 6aac80597f Support monitor mode from the GUI.
svn path=/trunk/; revision=32804
2010-05-14 05:15:40 +00:00
Guy Harris 9307251bb8 Um, no, the problem with the Leopard x86 build is that we first do a
build without libpcap, to make sure that works, and then do a build with
libpcap, to put into a binary release.  It's the former that's failing;
I'll back out the previous change and then work on that.

svn path=/trunk/; revision=32801
2010-05-14 00:49:28 +00:00
Guy Harris 0e54136213 See whether the Leopard x86 buildbot is upset because of the name
if_capabilities_t - it doesn't fail on Snow Leopard, even if I undefine
HAVE_PCAP_CREATE, and doesn't fail on the Leopard PPC buildbot, either.

svn path=/trunk/; revision=32799
2010-05-14 00:10:15 +00:00
Guy Harris 1c18115bd3 Fetch an indication of whether the interface supports capturing in
monitor mode at the same time that we fetch its list of link-layer
types.  Support fetching that list in monitor mode, as the list may be
different in regular and monitor mode.  If the interface supports
monitor mode, when printing the list of link-layer types, indicate
whether they're fetched in monitor mode or not, as tcpdump 4.1.x does.

svn path=/trunk/; revision=32789
2010-05-13 17:37:39 +00:00
Guy Harris 7dbbb8c572 Just check for pcap_create(); it first appeared in libpcap 1.0.0, and
pcap_set_buffer_size() did as well, so there aren't any libpcap releases
with pcap_create() but not pcap_set_buffer_size().

Only do one check for pcap_create.

svn path=/trunk/; revision=32695
2010-05-06 23:33:41 +00:00
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
Guy Harris 167ab3a98c In Wireshark and TShark, run dumpcap to get interface lists and lists of
link-layer header types for interfaces; if special privileges are
necessary to open capture devices, Wireshark and TShark shouldn't have
those privileges, but dumpcap should.

svn path=/trunk/; revision=32104
2010-03-04 01:12:04 +00:00
Bill Meier 02296387b0 Rename a number of variables for clarity.
svn path=/trunk/; revision=32007
2010-02-25 20:06:16 +00:00
Stig Bjørlykke 60ffce32e7 Check for valid linktype_history in capture_get_linktype().
svn path=/trunk/; revision=31438
2010-01-04 11:59:27 +00:00
Stig Bjørlykke 330a257c0a Set correct linktype when starting capture from the welcome page.
svn path=/trunk/; revision=31393
2009-12-30 19:21:21 +00:00
Anders Broman 7ce24f7744 Get rid of deprecated gtk_option_menu_new();
svn path=/trunk/; revision=29791
2009-09-08 13:49:19 +00:00
Bill Meier 1bc9f19f05 Add #include <stdio.h> in a few more places for Solaris.
svn path=/trunk/; revision=29577
2009-08-27 03:54:57 +00:00
Guy Harris 432cac16f3 "main_menu.[ch]" -> "menus.[ch]"; it handles not only the main menu, but
context menus.

Note why we have an empty hex dump pane context menu.

svn path=/trunk/; revision=28794
2009-06-21 19:16:37 +00:00
Stig Bjørlykke a61e285004 Added a preference to capture in Pcap-NG from GUI.
svn path=/trunk/; revision=28740
2009-06-15 16:36:02 +00:00
Gerald Combs 0a069bc6a3 Migrate the Airpcap UI code from GtkCombos (deprecated) to GtkComboBoxes.
Consolidate some common code. Rename a bunch of variables. Remove some
unused code.

Fix an offset flag bug in airpcap_loader.c.

This had to be merged by hand with r28349. Hopefully none of those
changes were clobbered.

svn path=/trunk/; revision=28350
2009-05-13 16:14:28 +00:00
Guy Harris 54c159cb41 Turn on -Wshorten-64-to-32 by default, and fix some issues that turned
up (99 44/100% of which were assignments of double-precision
floating-point constants to floats).  Hopefully this will catch at least
some P64 issues on UN*X.

svn path=/trunk/; revision=28108
2009-04-21 16:57:52 +00:00
Stig Bjørlykke 62f60df6b4 From Jakub Zawadzki (bug 3331):
g_free() is NULL safe, so we don't need check against it.

svn path=/trunk/; revision=27718
2009-03-13 22:06:48 +00:00
Stephen Fisher 3e60203474 Fix a few more problems found by checkAPIs.pl
svn path=/trunk/; revision=26887
2008-12-01 07:31:07 +00:00
Stig Bjørlykke f9c07203cb Still support GTK 2.4.0. No separator in combo box for GTK 2.4.0 :(
svn path=/trunk/; revision=26748
2008-11-11 12:46:16 +00:00
Stig Bjørlykke 053dd12cbd Rewrote interface type option_menu to gtk_combo_box, this fixes the bug
showing the correct type on connect failure or cancel in the remote
interface dialog.

Added list of recent remote hosts to interface type combo box.
Save the recent remote hosts in the recent file.
Fixed some indents.

svn path=/trunk/; revision=26747
2008-11-11 11:37:53 +00:00
Stig Bjørlykke 0132b9a092 Save the remote interfaces list to be able to show the remote IP addresses
without fetching a new list each time the interface changes.

Catch the "activate" signal on the text boxes in the remote interfaces dialog.

svn path=/trunk/; revision=26727
2008-11-07 15:52:14 +00:00
Stig Bjørlykke 7d8a21da5a Initialize the interface type value key to fix updating the local interface
list when changing from remote to local interfaces.

svn path=/trunk/; revision=26720
2008-11-06 22:36:43 +00:00
Stig Bjørlykke 2e3656d31a Fixed a check button text.
svn path=/trunk/; revision=26709
2008-11-06 15:33:44 +00:00
Stig Bjørlykke 2207381990 Changes in the "Capture Options" window:
- Moved all RPCAP settings to a "Remote Settings" dialog
- Rearranged "Buffer size" and "Wireless Settings" on win32
- Fall back to local interfaces when error listing remote interfaces
- Fixed setting correct sampling type when reopening the capture dialog
- Aligned some widgets in the "Capture Options" frame 
- Added some tooltips

svn path=/trunk/; revision=26687
2008-11-04 18:50:34 +00:00
Stig Bjørlykke 32d411be1d Do not set buffer size for remote interfaces or when using default value.
Do not get link-layer for remote interfaces.

svn path=/trunk/; revision=26683
2008-11-03 21:38:53 +00:00
Stig Bjørlykke 1655ca17d0 Do not use functions for remote capture on local interfaces.
This makes it possible to compile with remote capture features on unix.

svn path=/trunk/; revision=26681
2008-11-03 20:04:01 +00:00
Stig Bjørlykke 32b542de4f Use invisible event boxes so the preferences looks good when using themes.
svn path=/trunk/; revision=26502
2008-10-20 19:18:12 +00:00
Guy Harris ce89de75da If capture_dlg_prep() finds an error, don't continue with the capture.
Get rid of an extra g_strdup() (get_if_name() doesn't mangle its
argument and doesn't modify prefs.capture_device).

If there's no interface on which to capture, pop up a dialog to indicate
that.

svn path=/trunk/; revision=25997
2008-08-13 08:15:47 +00:00
Jaap Keuter bfc12627c9 From Alexey Neyman:
Start Wireshark without a preference file saved. Open the capture options dialog, 
then click "Start" button without selecting any interface. Wireshark segfaults while
dereferencing NULL pointer in get_if_name() called from capture_start_cb().

svn path=/trunk/; revision=25987
2008-08-12 05:14:29 +00:00
Bill Meier 56206e0002 Fix some simple cases of GTK2 deprecated API usage by using a renamed or equivalent API
gtk_container_border_width()          ==> gtk_container_set_border_width()
  gtk_container_children()              ==> gtk_container_get_children()
  gtk_entry_new_with_max_length()       ==> gtk_entry_new(); gtk_entry_set_max_length()
  gtk_menu_append()                     ==> gtk_menu_shell_append()
  gtk_menu_prepend()                    ==> gtk_menu_shell_prepend()
  gtk_notebook_set_page()               ==> gtk_notebook_set_current_page()
  gtk_paned_gutter_size()               ==> gtk_paned_set_gutter_size()
  gtk_radio_button_group()              ==> gtk_radio_button_get_group()
  gtk_signal_connect()                  ==> g_signal_connect()
  gtk_signal_disconnect()               ==> g_signal_handler_disconnect()
  gtk_signal_emit_by_name()             ==> g_signal_emit_by_name()
  gtk_signal_handler_block_by_data()    ==> g_signal_handlers_block_matched()
  gtk_signal_handler_block_by_func()    ==> g_signal_handlers_block_by_func()
  gtk_signal_handler_unblock_by_data()  ==> g_signal-handlers_unblock_matched()
  gtk_signal_handler_unblock_by_func()  ==> g_signal-handlers_unblock_by_func()
  gtk_spin_button_get_value_as_float()  ==> gtk_spin_button_get_value()
  gtk_toggle_button_set_state()         ==> gtk_toggle_button_set_active()

svn path=/trunk/; revision=25634
2008-06-29 15:51:43 +00:00
Guy Harris f441b8941e Add gtk/capture_globals.h, to declare global_capture_opts, so files that
don't need global_capture_opts don't need to have it declared and thus
don't need capture_options defined.

Include gtk/capture_globals in the files in question.

Change some more capture_opts references to refer to
global_capture_opts.

Change some global_capture_opts references in routines with a
capture_opts argument to refer to capture_opts.

The structure type is capture_options, not capture_opts; fix some
references.

Include <sys/types.h>, if it's present, in capture_opts.h, so we get
gid_t defined.

Clean up indentation.

svn path=/trunk/; revision=25574
2008-06-24 03:38:15 +00:00
Guy Harris e53bf053f9 For now, just refer to global_capture_opts, replacing references to the
now-defult global capture_opts pointer; we eventually should try to
minimize the use of global variables.

Export global_capture_opts from gtk/main.h.

Clean up indentation.

svn path=/trunk/; revision=25571
2008-06-24 02:22:36 +00:00
Stig Bjørlykke 860028c634 Removed the usage of topic_available() as we now have all topics.
svn path=/trunk/; revision=25505
2008-06-21 13:36:31 +00:00
Stig Bjørlykke 4889fc41e9 Make storage-based and time-based "Next file every" checkboxes behave equal
in "Use multiple files".  Also default to storage-based if not time-based.

This fixes the initial problem in bug #2599.

svn path=/trunk/; revision=25489
2008-06-19 17:25:34 +00:00
Stig Bjørlykke 561f66c1b8 Added an option to set default link-layer header type for each interface.
Set linktype history for each interface so we don't mix them.
Fixed some indents.

svn path=/trunk/; revision=25411
2008-06-02 17:45:03 +00:00
Guy Harris b35278d5d4 ...but not with a comment inside a comment, as that might cause a
warning.

svn path=/trunk/; revision=25206
2008-05-01 07:21:15 +00:00
Guy Harris 2adb021211 Get rid of C++/C99 comment.
svn path=/trunk/; revision=25205
2008-05-01 07:18:58 +00:00
Ulf Lamping 0b97c4211e sort #includes by directories
svn path=/trunk/; revision=24967
2008-04-13 00:55:59 +00:00
Ulf Lamping b51da2eb77 rename menu -> main_menu
remove old (and unused and confusing) ../menu.h

svn path=/trunk/; revision=24947
2008-04-12 19:18:26 +00:00
Ulf Lamping b4f3c5fd40 compat_macros.h is gone now!!!
all GTK1 compatibility code was removed, so this file can simply be dropped

svn path=/trunk/; revision=24923
2008-04-12 01:41:53 +00:00
Ulf Lamping 55c2be83db move stock icon code from toolbar.c into specific stock_icons file(s)
svn path=/trunk/; revision=24921
2008-04-12 00:49:20 +00:00
Stephen Fisher 41654fe5e4 Start getting rid of the uses of compat_macro.h's macros.
svn path=/trunk/; revision=24860
2008-04-09 05:37:53 +00:00
Ulf Lamping 6bd3a882ee remove GTK1 code
svn path=/trunk/; revision=24810
2008-04-06 22:25:36 +00:00
Stig Bjørlykke ad5e6ad06b Removed some more "statement not reached" warnings.
svn path=/trunk/; revision=24283
2008-02-07 12:52: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 92802883a6 Change the "--enable-setuid-install" option to install dumpcap and TShark
setuid instead of Wireshark.  Remove the "DANGEROUS" notices, but leave it
disabled by default.  Whine if the user runs Wireshark or TShark as root.
Add a preference to disable the whining.  Add a "setuid-root" script that
can be used to switch dumpcap and TShark's setuid-ness on and off for
development and testing.  Update the release notes and README.packaging.

svn path=/trunk/; revision=22733
2007-08-30 00:24:40 +00:00
Jeff Morriss 2f77efce7d Fix bug http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1757 :
Try to call get_interface_descriptive_name() as little as possible (storing
the result in capture_opts) to avoid a performance hit during live capture
(especially if you have lots of interfaces) and to avoid leaking memory.

One issue with this is that capture_opts.c cannot (without adding significant
dependencies) set the iface_descr so readers of that field (only gtk/main.c
and tshark.c) use a macro to (set if not already set and) get the value of
that field.

svn path=/trunk/; revision=22587
2007-08-22 16:30:16 +00:00
Gerald Combs c02e0c7b4a Remove the "-I" flag from dumpcap, and add a "-M" flag used to specify
that "-D" and "-L" should produce machine-readable output.  Use this to
move an indirect get_pcap_linktype() call from the GUI to dumpcap.

svn path=/trunk/; revision=22367
2007-07-20 21:43:07 +00:00
Gerald Combs e9f1a0b692 One more step in privilege separation.
Add a capture_interface_list(), which works similar to
get_interface_list() except that it forks dumpcap instead of calling
the pcap routines directly.  Use it in the GUI.

Add a "-I" flag to dumpcap, which prints out verbose interface
information.

Tested under Windows and Linux.

svn path=/trunk/; revision=22071
2007-06-11 03:58:58 +00:00
Gerald Combs 55d2b928c2 From Dustin Johnson:
- Update the wireless/AirPcap GUI code to support 802.11n as well as
    some related upcoming code changes.
  - Remove airpcap.h from the repository, since it exists in the AirPcap
    devpack (and will be superseded Real Soon Now).
  - Show the individual channel flag bits in radiotap.
  
Fix the 802.11n MCS set display.

This is a partial checkin, so hopefully nothing is broken.

svn path=/trunk/; revision=21831
2007-05-18 21:06:20 +00:00
Sebastien Tandel 2371ad2eb0 fix gcc warning about qualifier types (const) which are discarded when arriving
at the pcap interface.

svn path=/trunk/; revision=21417
2007-04-13 20:59:20 +00:00
Stephen Fisher e99aa2fe23 Update to revision 21038 - line up the IP address label with the
rest of the items in that part of the capture dialog.


svn path=/trunk/; revision=21039
2007-03-17 00:10:48 +00:00
Stephen Fisher c1132d9a4b Fix bug #1375: Capture Options with many IP addresses scrolls off
screen

Changed IP address label to fit into an event box which is in the ip
address hbox.  This allows the label to expand to fit the capture dialog
window, but no further.  Expanding the capture dialog window will show 
more IP addresses.  Left align the label.  Add ... in the middle of a
long list of IP addresses to show the first few and the last few with
the gtk_label_set_ellipsize() function in GTK 2.6 and up. 


svn path=/trunk/; revision=21038
2007-03-16 22:05:57 +00:00
Gerald Combs ed12aa0cb1 Propagate the recent interface list changes (r20521) to the AirPcap code.
Fix a mismatched declaration found by Gisle Vanem.

svn path=/trunk/; revision=20535
2007-01-23 20:12:09 +00:00
Guy Harris cc22748169 Have the routines to get interface lists take a pointer to a "gchar *"
as an argument, and, on an error, if they have an error message, have
them set that "gchar *" to point to a g_malloc()ed string containing the
error message, rather than taking a pointer to a buffer for that message
as an argument.  That's more like what's done in Wiretap, and doesn't
impose an upper limit on the lengths of those error messages.  If that
pointer is null, don't allocate the message string and return it.

Have that error message already have the "cant_get" processing applied
to it, so nobody other than those routines need to call the "cant_get"
routines to process the error messages.

Have get_airpcap_interface_list() explicitly set "*err" to the
appropriate error code.

Clean up indentation.

svn path=/trunk/; revision=20521
2007-01-21 23:45:36 +00:00