aboutsummaryrefslogtreecommitdiffstats
path: root/airpcap_loader.c
Commit message (Collapse)AuthorAgeFilesLines
* () -> (void)Jörg Mayer2009-05-131-8/+8
| | | | svn path=/trunk/; revision=28352
* Migrate the Airpcap UI code from GtkCombos (deprecated) to GtkComboBoxes.Gerald Combs2009-05-131-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
* Make it compile without warnings on OSX.Stig Bjørlykke2009-05-131-30/+24
| | | | svn path=/trunk/; revision=28343
* Hmm, HMODULE should have been void*Jörg Mayer2009-05-131-1/+1
| | | | svn path=/trunk/; revision=28341
* Replace all Windows types by glib types - hopefully theJörg Mayer2009-05-131-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
* Move the #if _WIN32 way inwards. This is needed to makeJörg Mayer2009-05-111-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
* Use g_malloc instead of malloc.Bill Meier2009-03-161-1/+1
| | | | svn path=/trunk/; revision=27738
* Removed a _U_ for a used argument.Stig Bjørlykke2008-12-081-1/+1
| | | | svn path=/trunk/; revision=26941
* Various corrections, as in: typos, whitespace, few return values, _U_ markers.Jaap Keuter2008-10-151-22/+21
| | | | svn path=/trunk/; revision=26472
* Keep the wireless toolbar extension channel entry from inadvertentlyGerald Combs2008-10-151-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
* Fix some of the Errors/warnings detected by checkapi.Anders Broman2008-05-071-1/+1
| | | | svn path=/trunk/; revision=25248
* Remove:Anders Broman2008-04-091-3/+0
| | | | | | | | #ifdef NEED_G_ASCII_STRCASECMP_H #include "g_ascii_strcasecmp.h" #endif svn path=/trunk/; revision=24859
* strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() delendaGuy Harris2007-11-271-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
* Instead of converting between 802.11 frequencies and channels umpteenGerald Combs2007-08-171-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
* Alter slightly so compile/link with airpcap works again....Bill Meier2007-05-211-1/+2
| | | | svn path=/trunk/; revision=21848
* Undefine AIRPCAP_DIR to get the Windows build going again.Anders Broman2007-05-201-2/+2
| | | | svn path=/trunk/; revision=21841
* From Dustin Johnson:Gerald Combs2007-05-181-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
* Fix bug 1377:Jeff Morriss2007-04-111-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
* Fix some C++ style commentsBill Meier2007-02-191-2/+2
| | | | svn path=/trunk/; revision=20865
* Spelling fixes.Gerald Combs2007-01-261-4/+4
| | | | svn path=/trunk/; revision=20561
* It's not an error if we don't find any AirPcap interfaces when AirPcap isn'tGerald Combs2007-01-241-619/+632
| | | | | | loaded. svn path=/trunk/; revision=20543
* Have the routines to get interface lists take a pointer to a "gchar *"Guy Harris2007-01-211-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. svn path=/trunk/; revision=20521
* make airpcap_loader.c compileable and linkable under WindowsTomas Kukosa2007-01-111-1/+1
| | | | svn path=/trunk/; revision=20391
* Add uri_str_to_bytes(), byte_array_dup(), and byte_array_equal()Gerald Combs2007-01-111-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. svn path=/trunk/; revision=20388
* Move the contents of airpdcap to epan/crypt. Try to fix the currentGerald Combs2006-12-281-3/+1
| | | | | | | distcheck failure. Move the nmake build targets for airpdcap from epan/dissectors to epan. This will probably break the Windows build. svn path=/trunk/; revision=20231
* Prepare to move the airpdcap code to epan/crypt (SVN won't let me actuallyGerald Combs2006-12-271-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. svn path=/trunk/; revision=20227
* remove a warningUlf Lamping2006-12-141-1/+1
| | | | svn path=/trunk/; revision=20139
* From Davide Schiera and Giorgio Tino: Add initial WPA/WPA2 decryptionGerald Combs2006-12-051-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. svn path=/trunk/; revision=20049
* fix a warning: "airpcap_loader.c(2287) : warning C4700: local variable 'ad' ↵Ulf Lamping2006-11-011-1/+1
| | | | | | used without having been initialized" svn path=/trunk/; revision=19771
* From Giorgio Tino: Add a "Don't show this message again" option to an Gerald Combs2006-10-311-1/+4
| | | | | | AirPcap warning dialog. Fix a callback bug in simple_dialog.c. svn path=/trunk/; revision=19747
* From Giorgio Tino: Add support for version 2.0 of the AirPcap driver, Gerald Combs2006-10-301-545/+1233
| | | | | | which has an updated API for WEP key handling. svn path=/trunk/; revision=19736
* Set AirpcapLoaded to TRUE if we've successfully loaded our DLL and obtainedGerald Combs2006-10-271-0/+1
| | | | | | our addresses. svn path=/trunk/; revision=19720
* Add a lot of sanity checks, particularly to get_airpcap_interface_list(),Gerald Combs2006-10-261-606/+632
| | | | | | which should fix bug 1176. Fix up whitespace and indentation. svn path=/trunk/; revision=19712
* Rename get_epan_and_portaudio_version_info() to get_gui_compiled_info()Gerald Combs2006-10-191-1/+31
| | | | | | | and add version info for AirPcap. Add a corresponding get_gui_runtime_info(). Fix up whitespace. svn path=/trunk/; revision=19620
* Add support for:Gerald Combs2006-10-191-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. svn path=/trunk/; revision=19599
* don't crash, if airpcap.dll isn't availableUlf Lamping2006-10-071-3/+9
| | | | svn path=/trunk/; revision=19448
* Fix WEP key bug in the AirPcap code that could cause a crash. EnableGerald Combs2006-10-021-14/+39
| | | | | | | AirPcap by default. Add initial support for the "Any" device in AirPcap (more to come). svn path=/trunk/; revision=19401
* remove obsolete "HAVE_AIRPCAP_API" commentUlf Lamping2006-09-121-1/+0
| | | | svn path=/trunk/; revision=19197
* Fix up copyrights and whitespace.Gerald Combs2006-08-211-1/+2
| | | | svn path=/trunk/; revision=18981
* Make sure a preference exists before we try to use it.Gerald Combs2006-08-201-1/+4
| | | | svn path=/trunk/; revision=18961
* Add support for AirPcap, an upcoming wireless product from CACE. SupportGerald Combs2006-08-161-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. :) svn path=/trunk/; revision=18928