aboutsummaryrefslogtreecommitdiffstats
path: root/airpcap_loader.c
AgeCommit message (Collapse)AuthorFilesLines
2007-11-27strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() delendaguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23623 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-17Instead of converting between 802.11 frequencies and channels umpteengerald1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22538 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-21Alter slightly so compile/link with airpcap works again....wmeier1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21848 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-20Undefine AIRPCAP_DIR to get the Windows build going again.etxrab1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21841 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-18From Dustin Johnson:gerald1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21831 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-11Fix bug 1377: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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21380 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-26Spelling fixes.gerald1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20561 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-24It's not an error if we don't find any AirPcap interfaces when AirPcap isn'tgerald1-619/+632
loaded. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20543 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-21Have the routines to get interface lists take a pointer to a "gchar *"guy1-9/+14
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20521 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-11make airpcap_loader.c compileable and linkable under Windowskukosa1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20391 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-11Add uri_str_to_bytes(), byte_array_dup(), and byte_array_equal()gerald1-1343/+973
functions to strutil. Use GByteArrays to store SSIDs for decryption, and let the user specify arbitrary byte strings using percent-encoded strings. We should probably add percent encoding for pass phrases as well, so you can escape the ":" character. Move the key struct key conversion utilities to airpdcap.c, and remove duplicate code from packet-ieee80211.c. Fix a lot of indentation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20388 f5534014-38df-0310-8fa8-9805f1628bb7
2006-12-28Move the contents of airpdcap to epan/crypt. Try to fix the currentgerald1-3/+1
distcheck failure. Move the nmake build targets for airpdcap from epan/dissectors to epan. This will probably break the Windows build. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20231 f5534014-38df-0310-8fa8-9805f1628bb7
2006-12-27Prepare to move the airpdcap code to epan/crypt (SVN won't let me actuallygerald1-20/+21
move the files until these changes are checked in). Add an AC_DEFINE for airpdcap (which will be removed once the changes have settled). Update the airpdcap code to compile on non-Windows systems. Fix up comments and whitespace to conform more closely to the rest of the code base. Verified to compile under Windows and OS X. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20227 f5534014-38df-0310-8fa8-9805f1628bb7
2006-12-14remove a warningulfl1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20139 f5534014-38df-0310-8fa8-9805f1628bb7
2006-12-05From Davide Schiera and Giorgio Tino: Add initial WPA/WPA2 decryptiongerald1-215/+510
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
2006-11-01fix a warning: "airpcap_loader.c(2287) : warning C4700: local variable 'ad' ↵ulfl1-1/+1
used without having been initialized" git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19771 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-31From Giorgio Tino: Add a "Don't show this message again" option to an gerald1-1/+4
AirPcap warning dialog. Fix a callback bug in simple_dialog.c. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19747 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-30From Giorgio Tino: Add support for version 2.0 of the AirPcap driver, gerald1-545/+1233
which has an updated API for WEP key handling. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19736 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-27Set AirpcapLoaded to TRUE if we've successfully loaded our DLL and obtainedgerald1-0/+1
our addresses. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19720 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-26Add a lot of sanity checks, particularly to get_airpcap_interface_list(),gerald1-606/+632
which should fix bug 1176. Fix up whitespace and indentation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19712 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-19Rename get_epan_and_portaudio_version_info() to get_gui_compiled_info()gerald1-1/+31
and add version info for AirPcap. Add a corresponding get_gui_runtime_info(). Fix up whitespace. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19620 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-19Add support for:gerald1-12/+919
- The AirPcap Multi-Channel Aggregator (which is marketspeak for an "any" device) - Merging the 802.11 dissector WEP key list with AirPcap's - Decrypting WEP in the adapter, in Wireshark, or not at all Update the release notes. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19599 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-07don't crash, if airpcap.dll isn't availableulfl1-3/+9
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19448 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-02Fix WEP key bug in the AirPcap code that could cause a crash. Enablegerald1-14/+39
AirPcap by default. Add initial support for the "Any" device in AirPcap (more to come). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19401 f5534014-38df-0310-8fa8-9805f1628bb7
2006-09-12remove obsolete "HAVE_AIRPCAP_API" commentulfl1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19197 f5534014-38df-0310-8fa8-9805f1628bb7
2006-08-21Fix up copyrights and whitespace.gerald1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18981 f5534014-38df-0310-8fa8-9805f1628bb7
2006-08-20Make sure a preference exists before we try to use it.gerald1-1/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18961 f5534014-38df-0310-8fa8-9805f1628bb7
2006-08-16Add support for AirPcap, an upcoming wireless product from CACE. Supportgerald1-0/+740
is disabled by default, and can be enabled by setting AIRPCAP_CONFIG in config.nmake. The code is currently limited to Windows, but should be adaptable to other platforms. The official announcement won't come until next week, so you'll have to read the source for details. :) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18928 f5534014-38df-0310-8fa8-9805f1628bb7