2
* b2ether_hl.h - Win32 ethernet driver high-level interface
4
* Basilisk II (C) 1997-1999 Christian Bauer
6
* Windows platform specific code copyright (C) Lauri Pesonen
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32
#define ETH_802_3_ADDRESS_LENGTH 6
33
#define MAX_LINK_NAME_LENGTH 124
35
typedef struct _ADAPTER {
37
TCHAR SymbolicLink[MAX_LINK_NAME_LENGTH];
38
} ADAPTER, *LPADAPTER;
40
typedef struct _PACKET {
41
OVERLAPPED OverLapped;
52
BOOLEAN StartPacketDriver(
56
LPADAPTER PacketOpenAdapter(
61
VOID PacketCloseAdapter(
65
LPPACKET PacketAllocatePacket(
66
LPADAPTER AdapterObject,
70
VOID PacketFreePacket(
74
BOOLEAN PacketSendPacket(
75
LPADAPTER AdapterObject,
78
BOOLEAN RecyclingAllowed
81
BOOLEAN PacketGetAddress(
82
LPADAPTER AdapterObject,
87
BOOLEAN PacketReceivePacket(
88
LPADAPTER AdapterObject,
93
BOOLEAN PacketSetFilter( LPADAPTER AdapterObject, ULONG Filter );
94
BOOLEAN PacketGetMAC( LPADAPTER AdapterObject, LPBYTE address, BOOL permanent );
95
BOOLEAN PacketAddMulticast( LPADAPTER AdapterObject, LPBYTE address );
96
BOOLEAN PacketDelMulticast( LPADAPTER AdapterObject, LPBYTE address );
98
ULONG PacketGetAdapterNames( LPADAPTER lpAdapter, PTSTR pStr, PULONG BufferSize );
99
ULONG PacketSelectAdapterByName( LPADAPTER AdapterObject, LPCSTR name );
102
void recycle_write_packet( LPPACKET Packet );
104
VOID CALLBACK packet_read_completion(
106
DWORD dwNumberOfBytesTransfered,
107
LPOVERLAPPED lpOverlapped
116
#endif // _B2_ETHER_HL_