mirror of https://github.com/bochs-emu/Bochs
- add UINT ReadTimeOut to the ADAPTER struct, reported by
Mike Lerwill <Mike@ml-solutions.co.uk> - at the moment we only use hFile so the other pieces of the ADAPTER struct don't affect how this code turns out. However, it would be safer to include the winpcap header file instead of hardcoding the structures, which are bound to change over time.
This commit is contained in:
parent
0beda7ae26
commit
4ec5b4a967
|
@ -1,5 +1,5 @@
|
|||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: eth_win32.cc,v 1.6 2002-03-07 02:23:54 bdenney Exp $
|
||||
// $Id: eth_win32.cc,v 1.7 2002-03-08 16:37:01 bdenney Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
|
@ -133,21 +133,24 @@ struct bpf_hdr {
|
|||
|
||||
#define MAX_LINK_NAME_LENGTH 64
|
||||
|
||||
// Why don't these definitions come from including winpcap.h or something?
|
||||
// -Bryce
|
||||
typedef struct _ADAPTER {
|
||||
HANDLE hFile;
|
||||
TCHAR SymbolicLink[MAX_LINK_NAME_LENGTH];
|
||||
int NumWrites;
|
||||
HANDLE ReadEvent;
|
||||
UINT ReadTimeOut; // WARNING: maybe invalid before winpcap 2.2
|
||||
} ADAPTER, *LPADAPTER;
|
||||
|
||||
typedef struct _PACKET {
|
||||
HANDLE hEvent;
|
||||
OVERLAPPED OverLapped;
|
||||
PVOID Buffer;
|
||||
UINT Length;
|
||||
OVERLAPPED OverLapped;
|
||||
PVOID Buffer;
|
||||
UINT Length;
|
||||
UINT ulBytesReceived;
|
||||
BOOLEAN bIoComplete;
|
||||
} PACKET, *LPPACKET;
|
||||
} PACKET, *LPPACKET;
|
||||
|
||||
HINSTANCE hPacket;
|
||||
LPADAPTER lpAdapter = 0;
|
||||
|
|
Loading…
Reference in New Issue