Commit Graph

30 Commits

Author SHA1 Message Date
Jeff Morriss 3551a86c36 We always HAVE_CONFIG_H so don't bother checking whether we have it or not.
svn path=/trunk/; revision=45015
2012-09-20 01:29:52 +00:00
Jakub Zawadzki bf81b42e1e Update Free Software Foundation address.
(COPYING will be updated in next commit)

svn path=/trunk/; revision=43536
2012-06-28 22:56:06 +00:00
Bill Meier 781129806f Fix ex "modeline" so it works;
See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5748

svn path=/trunk/; revision=39081
2011-09-21 17:49:11 +00:00
Gerald Combs 607b228df6 Add ws_load_library and ws_module_open, which respectively call
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
2010-08-25 20:30:59 +00:00
Bill Meier 6680513f4d Let's not use tabs with tab-width=4; Convert tabs to spaces (with indent=4).
Also: use consistent indentation & remove any trailing blanks.

svn path=/trunk/; revision=32588
2010-04-28 16:23:53 +00:00
Kovarththanan Rajaratnam cd49063473 Revert r29614 until I figure out why buildbot doesn't like it
svn path=/trunk/; revision=29615
2009-08-29 07:53:48 +00:00
Kovarththanan Rajaratnam cc948586bf Use G_STRINGIFY/G_PASTE
svn path=/trunk/; revision=29614
2009-08-29 06:42:23 +00:00
Bill Meier 882b917466 Fix emacs editor modeline to be a 'safe" value.
svn path=/trunk/; revision=29183
2009-07-23 20:52:54 +00:00
Gerald Combs caa884723c For interfaces that don't support PacketOpenAdapter (such as TurboCap),
disable the "Details" button in the interface list. Update an error
dialog to try to be more helpful.

svn path=/trunk/; revision=28675
2009-06-09 20:08:47 +00:00
Bill Meier 0e7d674d23 Fix for SVN #26535 so that building Wireshark with VC6 doesn't fail.
svn path=/trunk/; revision=26545
2008-10-24 22:13:09 +00:00
Bill Meier 8afa208ffb Windows build: #include winsock2.h only when needed.
#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.


svn path=/trunk/; revision=26535
2008-10-24 00:42:09 +00:00
Ulf Lamping d6f78c3457 from Gisle Vanem:
add " && defined(_MSC_VER)", as MingW doesn't need it

svn path=/trunk/; revision=21231
2007-03-27 21:32:14 +00:00
Ulf Lamping c7ba9e25b3 hmmm, _WINSOCK2API_ is not the way to go, the PSDK that comes with MSVC 6.0 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 ...

svn path=/trunk/; revision=21168
2007-03-24 18:26:34 +00:00
Ulf Lamping 473f4c3b64 as mentioned by Graham Bloice:
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

svn path=/trunk/; revision=21162
2007-03-24 02:45:45 +00:00
Ulf Lamping ecc5482c03 fix #1399: don't assert the oidlength returned from the network card driver, 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!

svn path=/trunk/; revision=20923
2007-02-25 12:50:21 +00:00
Ulf Lamping e71b416608 fix compilation for:
- Visual Studio .NET (2002)
- Visual Studio .NET 2003

svn path=/trunk/; revision=20349
2007-01-08 22:29:18 +00:00
Ulf Lamping d0724fc02f fix sockaddr_storage problem for MSVC 7.1 (hmmm, maybe it's a platform SDK issue - time will tell)
svn path=/trunk/; revision=20331
2007-01-06 00:48:11 +00:00
Ulf Lamping bcf21a35d6 MSVC2006 defines sockaddr_storage, so we shouldn't define this on our own for MSVC2006
this might be depending on the Platform SDK and not on MSVC version - I don't really know

svn path=/trunk/; revision=20259
2007-01-02 01:52:47 +00:00
Gerald Combs 8958bab6de Tethereal/tethereal -> TShark/tshark.
svn path=/trunk/; revision=18268
2006-05-31 17:38:42 +00:00
Anders Broman f68d6e4c8c Ethereal->Wireshark
svn path=/trunk/; revision=18235
2006-05-28 20:28:20 +00:00
Ronnie Sahlberg 89f022b12b name change
svn path=/trunk/; revision=18197
2006-05-21 05:12:17 +00:00
Ulf Lamping c2d7e088f3 copy input data into the buffer given to PacketRequest(), so functions with input parameters will also work
svn path=/trunk/; revision=17986
2006-04-25 00:12:43 +00:00
Ulf Lamping fee131e1a7 fix #868: don't assert but simply ignore values that don't have the proper size
svn path=/trunk/; revision=17845
2006-04-10 01:34:23 +00:00
Ulf Lamping 776776960d fix a compiler warning (... copied from RFC2553 :-)
svn path=/trunk/; revision=15890
2005-09-20 08:31:09 +00:00
Ulf Lamping d0bf73d13d the buildbot has a problem not knowing sa_family_t, define eth_sa_family_t 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.

svn path=/trunk/; revision=15887
2005-09-20 02:10:48 +00:00
Ulf Lamping 692ae2c6cb fix #340: define the missing sockaddr_storage struct to be able to use Packet32.h even with WinPcap 3.1 and without the platform SDK
svn path=/trunk/; revision=15878
2005-09-19 20:59:50 +00:00
Ulf Lamping 4eec579041 don't crash if packet.dll is not available, add some more packet.dll version numbers
svn path=/trunk/; revision=14414
2005-05-21 11:10:16 +00:00
Ulf Lamping b5d1f77046 as suggested by Loris: add wpcap_packet_get_version() and check the 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.
svn path=/trunk/; revision=14411
2005-05-21 09:41:57 +00:00
Ulf Lamping 131f417a8f don't use LPADAPTER but simply void * as we don't need to look inside the members of this struct
svn path=/trunk/; revision=14408
2005-05-21 00:10:17 +00:00
Ulf Lamping d817ddf513 win32 only: get interface details from WinPcap's packet.dll (direct access to NDIS specific driver information, lower first part)
svn path=/trunk/; revision=14406
2005-05-20 22:16:47 +00:00