aboutsummaryrefslogtreecommitdiffstats
path: root/airpcap_loader.c
AgeCommit message (Collapse)AuthorFilesLines
2014-08-01Move the AirPcap stuff into caputils.Guy Harris1-2552/+0
Change-Id: I64b45dad36a3ec491aeb9de3439b4fe19b46f9d8 Reviewed-on: https://code.wireshark.org/review/3308 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-06-30Move capture_ui_utils.[ch] to libui.Guy Harris1-1/+1
Change-Id: Id0f3d4d60a1acc7aa64fd3737b8f16df5bca4e5a Reviewed-on: https://code.wireshark.org/review/2708 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-07-25Add a UAT dialog. Make UAT preferences uat_t * instead of void *.Gerald Combs1-2/+2
C++-ize the UAT headers. Add an ElidedLabel widget. Use it in the File Set, Profile, and UAT dialogs. Update the Qt README. svn path=/trunk/; revision=50896
2013-04-22Add a "hidden" array of UAT entry data to allow separation between UAT file ↵Michael Mann1-1/+1
syntax errors and "syntactically correct, but invalid field". Now UAT files load all entries into the "hidden" array (raw_data), but only adds valid ones to the user_data, which is used by the dissectors. This is a start to fixing bug 7471 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7471) and is being committed to get the new ABI/API in before the 1.10 release. What remains is the "GUI portion" (GTK+qt) to indicate to users which UAT entries are invalid. svn path=/trunk/; revision=48960
2013-04-17Use also const char to uat_save (identical to uat_load)Alexis La Goutte1-3/+2
svn path=/trunk/; revision=48902
2013-04-17From Michael Mann via ↵Alexis La Goutte1-5/+12
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8446 Wifi details are not stored in the Decryption Key Management dialog (post 1.8.x) If there is not 80211_keys file, using Decryption Management Key don't create the file and keys is not saved. From me: Use a err2 variable to avoid to break API/ABI when backport to 1.8 svn path=/trunk/; revision=48900
2013-04-07Fix some Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-0/+13
svn path=/trunk/; revision=48771
2013-03-18From beroset:Anders Broman1-7/+7
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48409
2013-03-15Bugfix Decryption Key Management dialog, bug 8446 ↵Michael Mann1-55/+64
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8446) Needed to convert use of old IEEE802.11 preference strings to UAT. Since UAT is self-contained within its own file, the entire preference file doesn't need to be rewritten/saved when UAT values are changed. svn path=/trunk/; revision=48308
2013-02-17Add a macro to calculate, from the size of an AirpcapKeysCollectionGuy Harris1-3/+3
structure, the number of keys in the key list, and use it. svn path=/trunk/; revision=47718
2013-02-17Add a macro that, for a given count of keys, returns the total size ofGuy Harris1-2/+2
an AirpcapKeysCollection structure with that number of keys, and use it instead of doing the calculation manually. svn path=/trunk/; revision=47699
2012-12-26Fix a bunch of warnings.Guy Harris1-5/+5
Cast away some implicit 64-bit-to-32-bit conversion errors due to use of sizeof. Cast away some implicit 64-bit-to-32-bit conversion errors due to use of strtol() and strtoul(). Change some data types to avoid those implicit conversion warnings. When assigning a constant to a float, make sure the constant isn't a double, by appending "f" to the constant. Constify a bunch of variables, parameters, and return values to eliminate warnings due to strings being given const qualifiers. Cast away those warnings in some cases where an API we don't control forces us to do so. Enable a bunch of additional warnings by default. Note why at least some of the other warnings aren't enabled. randpkt.c and text2pcap.c are used to build programs, so they don't need to be in EXTRA_DIST. If the user specifies --enable-warnings-as-errors, add -Werror *even if the user specified --enable-extra-gcc-flags; assume they know what they're doing and are willing to have the compile fail due to the extra GCC warnings being treated as errors. svn path=/trunk/; revision=46748
2012-11-25 Fix a [-Wshadow] warning;Bill Meier1-814/+814
Also: Do some minor whitespace and formatting changes. svn path=/trunk/; revision=46187
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45015
2012-08-08Have (almost) all preferences use the generic preferences API (per ↵Michael Mann1-1/+1
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7402). This cleaned up a lot of hardcoded code and allows breaking up the prefs structure (or at least prevent it from growing too large) if desired. Bugfixed problems mentioned in http://www.wireshark.org/lists/wireshark-dev/201208/msg00001.html Column preferences now support default '#' character svn path=/trunk/; revision=44348
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-06-11From Evan Huus:Anders Broman1-4/+2
Airpcap memory leak. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7352 svn path=/trunk/; revision=43198
2012-04-18From Evan Huus: Two bad NULL checks in airpcap_loader.c ↵Anders Broman1-3/+5
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7141 svn path=/trunk/; revision=42136
2012-04-16Fix some Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-15/+0
svn path=/trunk/; revision=42090
2012-03-27Use AIRPCAP_ERRBUF_SIZE instead of PCAP_ERRBUF_SIZE in one spot.Jeff Morriss1-1/+1
svn path=/trunk/; revision=41801
2012-01-16#include "simple_dialog.h" ==> #include "ui/simple-dislog.h"Bill Meier1-1/+1
svn path=/trunk/; revision=40540
2011-09-24Fix syntax...Michael Tüxen1-1/+1
svn path=/trunk/; revision=39124
2011-09-24Don't consider remote airpcap devices as airpcap devices, but as remote devices.Michael Tüxen1-26/+7
This makes the GUI consistent. svn path=/trunk/; revision=39123
2011-08-18Update the AirPcap code in prefs_dlg.c to match the changes made toGerald Combs1-0/+1
airpcap_dlg.c long ago in r28350. Re-enable GTK_DISABLE_DEPRECATED. Add a comment to airpcap_loader.c about moving functionality to packet-ieee80211.c. svn path=/trunk/; revision=38610
2011-07-04From Michael Mann:Anders Broman1-10/+26
Removed "key prefix" need within GUI so it's a little more intuitive (because that's what this bug is complaining about). Slight backwards compatibility issue with UAT (because key prefix was in previous keys), but all development (including fix for BUG 1123 that created UAT) has just been on SVN and not released. Also adjusted AirPCap (airpcap_loader.c) to account for the lack of "key prefix". Addressed some memory leaks/excess string creation. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5985 svn path=/trunk/; revision=37888
2010-08-25Add ws_load_library and ws_module_open, which respectively callGerald Combs1-1/+2
LoadLibrary and g_module_open only for the program directory and system directory on Windows. Use them to replace a bunch of LoadLibrary and g_module_open calls. Use the extension ".dll" for all the DLLs that we load. Add comments about DLL loading in Python. svn path=/trunk/; revision=33924
2009-12-18Don't try to free a static pointer.Gerald Combs1-1/+0
svn path=/trunk/; revision=31315
2009-11-12Update the AirPcap code for Win64 and enable AirPcap for the 64-bit build.Gerald Combs1-20/+20
svn path=/trunk/; revision=30945
2009-05-13() -> (void)Jörg Mayer1-8/+8
svn path=/trunk/; revision=28352
2009-05-13Migrate the Airpcap UI code from GtkCombos (deprecated) to GtkComboBoxes.Gerald Combs1-4/+4
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-13Make it compile without warnings on OSX.Stig Bjørlykke1-30/+24
svn path=/trunk/; revision=28343
2009-05-13Hmm, HMODULE should have been void*Jörg Mayer1-1/+1
svn path=/trunk/; revision=28341
2009-05-13Replace all Windows types by glib types - hopefully theJörg Mayer1-57/+57
correct ones. Use buildbot as a compile test on Windows. This makes "configure --enable-airpcap && make" succeed on Linux. It crashes the moment you click the wireless settings button because some relevant information isn't present (nullpointer deref). svn path=/trunk/; revision=28340
2009-05-11Move the #if _WIN32 way inwards. This is needed to makeJörg Mayer1-2/+4
the whole thing link under Linux - of course we are still a long way from the code being usable. Oh, compiling will only work if the windows types get replaced by glib types, but that is for another patch. svn path=/trunk/; revision=28331
2009-03-16Use g_malloc instead of malloc.Bill Meier1-1/+1
svn path=/trunk/; revision=27738
2008-12-08Removed a _U_ for a used argument.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=26941
2008-10-15Various corrections, as in: typos, whitespace, few return values, _U_ markers.Jaap Keuter1-22/+21
svn path=/trunk/; revision=26472
2008-10-15Keep the wireless toolbar extension channel entry from inadvertentlyGerald Combs1-1/+5
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 svn path=/trunk/; revision=26469
2008-05-07Fix some of the Errors/warnings detected by checkapi.Anders Broman1-1/+1
svn path=/trunk/; revision=25248
2008-04-09Remove:Anders Broman1-3/+0
#ifdef NEED_G_ASCII_STRCASECMP_H #include "g_ascii_strcasecmp.h" #endif svn path=/trunk/; revision=24859
2007-11-27strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() delendaGuy Harris1-5/+9
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. svn path=/trunk/; revision=23623
2007-08-17Instead of converting between 802.11 frequencies and channels umpteenGerald Combs1-220/+101
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. svn path=/trunk/; revision=22538
2007-05-21Alter slightly so compile/link with airpcap works again....Bill Meier1-1/+2
svn path=/trunk/; revision=21848
2007-05-20Undefine AIRPCAP_DIR to get the Windows build going again.Anders Broman1-2/+2
svn path=/trunk/; revision=21841
2007-05-18From Dustin Johnson:Gerald Combs1-206/+495
- 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-04-11Fix bug 1377:Jeff Morriss1-0/+3
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1377 and complaints to the mailing list that a bogus (empty or non-ASCII contents) dialog box was popped up when getting the list of interfaces. The problem was that 'get_airpcap_interface_list()' wasn't setting the returned error value when it found that AirPcap was not loaded. If whatever was in that variable happened to be 1 when a non-AirPcap user requested the list of interfaces then the bogus dialog would show up. svn path=/trunk/; revision=21380
2007-02-19Fix some C++ style commentsBill Meier1-2/+2
svn path=/trunk/; revision=20865
2007-01-26Spelling fixes.Gerald Combs1-4/+4
svn path=/trunk/; revision=20561
2007-01-24It's not an error if we don't find any AirPcap interfaces when AirPcap isn'tGerald Combs1-619/+632
loaded. svn path=/trunk/; revision=20543