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