aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/airpcap_dlg.c
AgeCommit message (Collapse)AuthorFilesLines
2011-09-21Fix ex "modeline" so it works;wmeier1-28/+28
See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5748 Convert "4 space tabs" to spaces; Use consistent indentation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39079 f5534014-38df-0310-8fa8-9805f1628bb7
2011-07-29Remove remaining direct access to GTK structs in Windows.etxrab1-4/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38251 f5534014-38df-0310-8fa8-9805f1628bb7
2011-07-24Replace deprecated functions.etxrab1-1/+1
Udate comments in CheckAPIs git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38185 f5534014-38df-0310-8fa8-9805f1628bb7
2011-07-24Replace deprecated functions.etxrab1-30/+31
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38183 f5534014-38df-0310-8fa8-9805f1628bb7
2011-07-14Fix some compiler errors with -DGTK_DISABLE_DEPRECATEDjmayer1-0/+44
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38006 f5534014-38df-0310-8fa8-9805f1628bb7
2011-07-11GTK_CHECK_VERSION cleanup.etxrab1-2/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37972 f5534014-38df-0310-8fa8-9805f1628bb7
2011-06-28Replace all strerror() with g_strerror().stig1-2/+2
Remove our local strerror implementation. Mark strerror as locale unsafe API. This fixes bug 5715. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37812 f5534014-38df-0310-8fa8-9805f1628bb7
2011-05-31REmove the check for HAVE_AIRPDCAPetxrab1-22/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37494 f5534014-38df-0310-8fa8-9805f1628bb7
2011-05-15gtk_combo_box_get_active_text() may return NULL and g_ascii_strcasecmp() ↵morriss1-12/+12
complains if its first argument is NULL, so check for the NULL pointer before using it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37151 f5534014-38df-0310-8fa8-9805f1628bb7
2011-02-10Remove a bunch of prototypes in airpcap_dlg.h for functions which aregerald1-412/+414
now static. Make another function static. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35897 f5534014-38df-0310-8fa8-9805f1628bb7
2011-02-07Switch from GtkCList (which is deprecated) to GtkTreeView+GtkListStore.gerald1-574/+475
Make a bunch of functions static. Get rid of a no-longer-necessary struct. Clean up other parts of the code. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35862 f5534014-38df-0310-8fa8-9805f1628bb7
2010-11-28Clean up white space.guy1-101/+101
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35043 f5534014-38df-0310-8fa8-9805f1628bb7
2010-08-23(Minor) Cleanup signal callbak signatures and related:wmeier1-14/+14
- 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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33895 f5534014-38df-0310-8fa8-9805f1628bb7
2010-08-17(Trivial) window_delete_event_cb() 'user_data' arg is unused ...wmeier1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33829 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-17Fix a very minor memory leak.wmeier1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31904 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-04Add HAVE_AIRPDCAP guardkrj1-0/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30299 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-01Fix a key entry bug in the decryption key dialog. Remove some unused /gerald1-56/+14
unnecessary functions. Clean up code in a couple of places. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28908 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-29Fix a couple of AirPcap channel/offset bugs. Remove an unusedgerald1-46/+15
routine. Fixup whitespace in a couple of places. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28886 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-21Change window_new() to dlg_window_new() and destroy the window with the top ↵etxrab1-2/+4
level window. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28796 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-13Don't check if unsigned values are > 0.stig1-7/+5
Removed some unused variables and marked some unused arguments. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28351 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-13Migrate the Airpcap UI code from GtkCombos (deprecated) to GtkComboBoxes.gerald1-466/+243
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28350 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-13Do not prototype static functions in the header file.stig1-59/+38
Removed some unused empty functions. Mark some unused arguments. Removed some unused variables. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28349 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-13ULONG -> guint32jmayer1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28339 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-04From Didier Gautheron (bug 3126):stig1-1/+1
Update expert info icon on redissect. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28269 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-12From Jakub Zawadzki:stig1-3/+3
Use non-formatting functions when appropriate. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27709 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-17When we set the channel and offset entries in the wireless toolbar,gerald1-92/+64
set the offset first. This makes sure the offset entry is initialized correctly. In the advanced wireless settings dialog, don't bother enabling/disabling the toolbar. Remove some leftover debugging code. Remove some checks for data we don't use (and mark it as unused). Fixup whitespace. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26487 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-15Various corrections, as in: typos, whitespace, few return values, _U_ markers.jake1-45/+45
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26472 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-15Keep the wireless toolbar extension channel entry from inadvertentlygerald1-3/+7
setting its value to -1. Fix a bug that kept the wireless toolbar from being enabled if HAVE_PCAP_REMOTE was defined. Fix a couple of other minor issues. --Thisr line, and those below, will be ignored-- M airpcap_loader.c M gtk/airpcap_dlg.c M gtk/main_airpcap_toolbar.c git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26469 f5534014-38df-0310-8fa8-9805f1628bb7
2008-07-21From Dustin Johnson: Don't pop up a warning dialog every time we can't savegerald1-11/+9
our AirPcap configuration. Just print out a warning to the console instead. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25781 f5534014-38df-0310-8fa8-9805f1628bb7
2008-07-08Fix some simple cases of GTK2 deprecated API usage by using a renamed or ↵wmeier1-11/+14
equivalent API gtk_timeout_add() ==> g_timeout_add gtk_timeout_remove() ==> g_source_remove() Also: timer callback should return gboolean (not void or gint) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25672 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-29Fix some simple cases of GTK2 deprecated API usage by using a renamed or ↵wmeier1-4/+4
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() git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25634 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-06Fix some of the Errors/warnings detected by checkapi.etxrab1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25244 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-13sort #includes by directoriesulfl1-11/+11
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24967 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-12move stock icon code from toolbar.c into specific stock_icons file(s)ulfl1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24921 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-09Get the Windows build going again(?).etxrab1-143/+143
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24869 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-09Remove:etxrab1-4/+0
#ifdef NEED_G_ASCII_STRCASECMP_H #include "g_ascii_strcasecmp.h" #endif git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24868 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-09Start getting rid of the uses of compat_macro.h's macros.sfisher1-188/+188
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24860 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-07Remove GTK1 code and change ugly version checking statements intosfisher1-4/+1
GTK_CHECK_VERSION(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24826 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-06remove GTK1 codeulfl1-168/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24809 f5534014-38df-0310-8fa8-9805f1628bb7
2008-01-24Fix various small memory leaks & 1 invalid g_free (airpcap_gui_utils.c)wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24185 f5534014-38df-0310-8fa8-9805f1628bb7
2008-01-23Fix a minor memory leak; Remove some unused variableswmeier1-9/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24168 f5534014-38df-0310-8fa8-9805f1628bb7
2007-12-04add missing emem.h include (prefs-int.h uses emem structures now)kukosa1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23748 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-27strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() delendaguy1-29/+33
est. Use g_ascii_strcasecmp() and g_ascii_strncasecmp(), and supply our own versions if they're missing from GLib (as is the case with GLib 1.x). In the code to build the list of named fields for Diameter, don't use g_strdown(); do our own g_ascii_-style upper-case to lower-case mapping in the hash function and use g_ascii_strcasecmp() in the compare function. We do this because there is no guarantee that toupper(), tolower(), and functions that use them will, for example, map between "I" and "i" in all locales; in Turkish locales, for example, there are, in both upper case and lower case, versions of "i" with and without a dot, and the upper-case version of "i" is "I"-with-a-dot and the lower-case version of "I" is "i"-without-a-dot. This causes strings that should match not to match. This finishes fixing bug 2010 - an earlier checkin prevented the crash (as there are other ways to produce the same crash, e.g. a bogus dictionary.xml file), but didn't fix the case-insensitive string matching. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23623 f5534014-38df-0310-8fa8-9805f1628bb7
2007-10-16From tmiller@hcjbtech.org : Spelling error on GDS DB protocol dissector: ↵sake1-1/+1
"Buffer lenght:" (recursively grepped through the source and corrected all occurences, even the ones just in comments) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23211 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-17Instead of converting between 802.11 frequencies and channels umpteengerald1-22/+23
different ways, add a set of common conversion routines. Add a "Frequency/Channel" column and fill it in where we can. Fix RSSI column printing in PPI. Fix up whitespace along the way. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22538 f5534014-38df-0310-8fa8-9805f1628bb7
2007-06-27In the wireless key management dialog, apply the 802.11 preferences whengerald1-45/+12
the "OK," "Apply," or "Cancel" buttons are pressed. Remove some duplicate code. Add a comment about "Cancel" not working as expected. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22211 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-18From Dustin Johnson:gerald1-258/+116
- 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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21831 f5534014-38df-0310-8fa8-9805f1628bb7
2007-02-19Fix some C++ style commentswmeier1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20865 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-26Massive indentation fixes.gerald1-2608/+2610
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20560 f5534014-38df-0310-8fa8-9805f1628bb7
2006-12-05From Davide Schiera and Giorgio Tino: Add initial WPA/WPA2 decryptiongerald1-183/+452
support. WEP key preferences have been overloaded to allow WPA keys. The decryption code currently uses Windows-specific data types, but can be converted to use glib equivalents. Add a few text and whitespace fixups. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20049 f5534014-38df-0310-8fa8-9805f1628bb7