aboutsummaryrefslogtreecommitdiffstats
path: root/capture_wpcap_packet.c
AgeCommit message (Collapse)AuthorFilesLines
2011-09-21Fix ex "modeline" so it works;wmeier1-1/+1
See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5748 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39081 f5534014-38df-0310-8fa8-9805f1628bb7
2010-08-25Add ws_load_library and ws_module_open, which respectively callgerald1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33924 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-28 Let's not use tabs with tab-width=4; Convert tabs to spaces (with indent=4).wmeier1-67/+67
Also: use consistent indentation & remove any trailing blanks. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32588 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-29Revert r29614 until I figure out why buildbot doesn't like itkrj1-1/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29615 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-29Use G_STRINGIFY/G_PASTEkrj1-4/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29614 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-23Fix emacs editor modeline to be a 'safe" value.wmeier1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29183 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-09For interfaces that don't support PacketOpenAdapter (such as TurboCap),gerald1-0/+13
disable the "Details" button in the interface list. Update an error dialog to try to be more helpful. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28675 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-24Fix for SVN #26535 so that building Wireshark with VC6 doesn't fail.wmeier1-2/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26545 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-24Windows build: #include winsock2.h only when needed.wmeier1-9/+9
#include winsock2.h pulls in about 90 distinct .h files and about 140 total .h files. Currently winsock2.h is (mostly unnecessarily) included for each dissector via packet.h/wtap.h. This patch removes #include winsock2.h from wtap.h and then includes winsock2.h (or windows.h) in the few specific places required. With this patch, my Windows Wireshark build takes about 30% less time. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26535 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-27from Gisle Vanem:ulfl1-1/+1
add " && defined(_MSC_VER)", as MingW doesn't need it git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21231 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-24hmmm, _WINSOCK2API_ is not the way to go, the PSDK that comes with MSVC 6.0 ↵ulfl1-8/+7
also defines this - but not sockaddr_storage :-( Next try is to use the WINVER #define. AFAIK, this depends on the Platform SDK version used, which is actually our problem here. So this fix *might* work ... git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21168 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-24as mentioned by Graham Bloice:ulfl1-9/+6
sockaddr_storage doesn't depend on the MSVC version used, but the version of the Winsock API, which might be updated by the Platform SDK even on MSVC 6 - so depending on the _MSC_VER is not the way to go git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21162 f5534014-38df-0310-8fa8-9805f1628bb7
2007-02-25fix #1399: don't assert the oidlength returned from the network card driver, ↵ulfl1-4/+11
but simply return that the PacketRequest call failed in that case. BTW: this is a serious bug in the specific network card driver of this report, it returned a buffer length LONGER than the provided buffer length one! git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20923 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-08fix compilation for:ulfl1-3/+2
- Visual Studio .NET (2002) - Visual Studio .NET 2003 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20349 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-06fix sockaddr_storage problem for MSVC 7.1 (hmmm, maybe it's a platform SDK ↵ulfl1-4/+6
issue - time will tell) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20331 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-02MSVC2006 defines sockaddr_storage, so we shouldn't define this on our own ↵ulfl1-0/+7
for MSVC2006 this might be depending on the Platform SDK and not on MSVC version - I don't really know git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20259 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-31Tethereal/tethereal -> TShark/tshark.gerald1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18268 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-28Ethereal->Wiresharketxrab1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18235 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21name changesahlberg1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18197 f5534014-38df-0310-8fa8-9805f1628bb7
2006-04-25copy input data into the buffer given to PacketRequest(), so functions with ↵ulfl1-0/+1
input parameters will also work git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17986 f5534014-38df-0310-8fa8-9805f1628bb7
2006-04-10fix #868: don't assert but simply ignore values that don't have the proper sizeulfl1-4/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17845 f5534014-38df-0310-8fa8-9805f1628bb7
2005-09-20fix a compiler warning (... copied from RFC2553 :-)ulfl1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15890 f5534014-38df-0310-8fa8-9805f1628bb7
2005-09-20the buildbot has a problem not knowing sa_family_t, define eth_sa_family_t ↵ulfl1-4/+7
and use it here (ok, this *is* a dirty hack) don't know why the last commit compiled on my machine and not on the buildbot. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15887 f5534014-38df-0310-8fa8-9805f1628bb7
2005-09-19fix #340: define the missing sockaddr_storage struct to be able to use ↵ulfl1-0/+39
Packet32.h even with WinPcap 3.1 and without the platform SDK git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15878 f5534014-38df-0310-8fa8-9805f1628bb7
2005-05-21don't crash if packet.dll is not available, add some more packet.dll version ↵ulfl1-1/+3
numbers git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14414 f5534014-38df-0310-8fa8-9805f1628bb7
2005-05-21as suggested by Loris: add wpcap_packet_get_version() and check the ↵ulfl1-3/+15
packet.dll version before using it (very restrictive for now, will check for exact DLL version strings). If version is unknown, ask user to continue or not. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14411 f5534014-38df-0310-8fa8-9805f1628bb7
2005-05-21don't use LPADAPTER but simply void * as we don't need to look inside the ↵ulfl1-8/+8
members of this struct git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14408 f5534014-38df-0310-8fa8-9805f1628bb7
2005-05-20win32 only: get interface details from WinPcap's packet.dll (direct access ↵ulfl1-0/+252
to NDIS specific driver information, lower first part) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14406 f5534014-38df-0310-8fa8-9805f1628bb7