ReactOS 0.4.16-dev-117-g38f21f9
|
#include "precomp.h"
Go to the source code of this file.
Variables | |
ULONG | DebugTraceLevel = 0x7ffffff |
PDEVICE_OBJECT | LanDeviceObject = NULL |
VOID BindAdapter | ( | PLAN_ADAPTER | Adapter, |
PNDIS_STRING | RegistryPath | ||
) |
Binds a LAN adapter to IP layer.
Adapter | = Pointer to LAN_ADAPTER structure |
Definition at line 617 of file lan.c.
Referenced by LANRegisterAdapter().
NTSTATUS NTAPI DriverEntry | ( | PDRIVER_OBJECT | DriverObject, |
PUNICODE_STRING | RegsitryPath | ||
) |
Definition at line 1443 of file lan.c.
PLAN_ADAPTER FindAdapterByIndex | ( | PLAN_DEVICE_EXT | DeviceExt, |
UINT | Index | ||
) |
Definition at line 1073 of file lan.c.
Referenced by LanAdapterInfo(), and LANTransmitInternal().
VOID FreeAdapter | ( | PLAN_ADAPTER | Adapter | ) |
Frees memory for a LAN_ADAPTER structure.
Adapter | = Pointer to LAN_ADAPTER structure to free |
Definition at line 83 of file lan.c.
Referenced by LANUnregisterAdapter().
NTSTATUS NTAPI LanAdapterInfo | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp, | ||
PIO_STACK_LOCATION | IrpSp | ||
) |
Definition at line 1200 of file lan.c.
Referenced by LanDispatch().
NTSTATUS NTAPI LanCloseProtocol | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp, | ||
PIO_STACK_LOCATION | IrpSp | ||
) |
Definition at line 1030 of file lan.c.
Referenced by LanDispatch().
NTSTATUS NTAPI LanCreateProtocol | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp, | ||
PIO_STACK_LOCATION | IrpSp | ||
) |
Definition at line 973 of file lan.c.
Referenced by LanDispatch().
NTSTATUS NTAPI LanDispatch | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp | ||
) |
Definition at line 1354 of file lan.c.
Referenced by DriverEntry().
NTSTATUS NTAPI LanEnumAdapters | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp, | ||
PIO_STACK_LOCATION | IrpSp | ||
) |
Definition at line 1147 of file lan.c.
Referenced by LanDispatch().
NTSTATUS NTAPI LanReadData | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp, | ||
PIO_STACK_LOCATION | IrpSp | ||
) |
Definition at line 1121 of file lan.c.
Referenced by LanDispatch().
NDIS_STATUS LANRegisterAdapter | ( | PNDIS_STRING | AdapterName, |
PNDIS_STRING | RegistryPath | ||
) |
Registers protocol with an NDIS adapter.
AdapterName | = Pointer to string with name of adapter to register |
Adapter | = Address of pointer to a LAN_ADAPTER structure |
Definition at line 637 of file lan.c.
Referenced by ProtocolBindAdapter().
NTSTATUS LANRegisterProtocol | ( | PNDIS_STRING | Name | ) |
Registers this protocol driver with NDIS.
Name | = Name of this protocol driver |
Definition at line 893 of file lan.c.
Referenced by DriverEntry().
NTSTATUS NTAPI LanSetBufferedMode | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp, | ||
PIO_STACK_LOCATION | IrpSp | ||
) |
Definition at line 1318 of file lan.c.
Referenced by LanDispatch().
VOID LANTransmit | ( | PLAN_ADAPTER | Adapter, |
PNDIS_PACKET | NdisPacket, | ||
PVOID | LinkAddress, | ||
USHORT | Type | ||
) |
Transmits a packet ARGUMENTS:
Context | = Pointer to context information (LAN_ADAPTER) |
NdisPacket | = Pointer to NDIS packet to send |
LinkAddress | = Pointer to link address of destination (NULL = broadcast) |
Type | = LAN protocol type (LAN_PROTO_*) |
Definition at line 520 of file lan.c.
Referenced by BindAdapter(), and LANTransmitInternal().
UINT LANTransmitInternal | ( | PLAN_PACKET_HEADER | ToWrite, |
UINT | OverallLength | ||
) |
Definition at line 544 of file lan.c.
Referenced by LanWriteData().
VOID NTAPI LanUnload | ( | PDRIVER_OBJECT | DriverObject | ) |
Definition at line 1434 of file lan.c.
Referenced by DriverEntry().
NDIS_STATUS LANUnregisterAdapter | ( | PLAN_ADAPTER | Adapter | ) |
Unregisters protocol with NDIS adapter.
Adapter | = Pointer to a LAN_ADAPTER structure |
Definition at line 847 of file lan.c.
Referenced by LANUnregisterProtocol(), and ProtocolUnbindAdapter().
Unregisters this protocol driver with NDIS.
Definition at line 943 of file lan.c.
Referenced by LANRegisterProtocol(), and LanUnload().
NTSTATUS NTAPI LanWriteData | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp, | ||
PIO_STACK_LOCATION | IrpSp | ||
) |
Definition at line 1101 of file lan.c.
Referenced by LanDispatch().
NDIS_STATUS NDISCall | ( | PLAN_ADAPTER | Adapter, |
NDIS_REQUEST_TYPE | Type, | ||
NDIS_OID | OID, | ||
PVOID | Buffer, | ||
UINT | Length | ||
) |
Send a request to NDIS.
Adapter | = Pointer to a LAN_ADAPTER structure |
Type | = Type of request (Set or Query) |
OID | = Value to be set/queried for |
Buffer | = Pointer to a buffer to use |
Length | = Number of bytes in Buffer |
Definition at line 29 of file lan.c.
Referenced by BindAdapter(), LANRegisterAdapter(), ReconfigureAdapter(), and TcpipLanGetDwordOid().
VOID NTAPI ProtocolBindAdapter | ( | OUT PNDIS_STATUS | Status, |
IN NDIS_HANDLE | BindContext, | ||
IN PNDIS_STRING | DeviceName, | ||
IN PVOID | SystemSpecific1, | ||
IN PVOID | SystemSpecific2 | ||
) |
Called by NDIS during NdisRegisterProtocol to set up initial bindings, and periodically thereafter as new adapters come online.
Status | - Return value to NDIS |
BindContext | - Handle provided by NDIS to track pending binding operations |
DeviceName | - Name of the miniport device to bind to |
SystemSpecific1 | - Pointer to a registry path with protocol-specific configuration information |
SystemSpecific2 | - Unused & must not be touched |
Definition at line 497 of file lan.c.
Referenced by LANRegisterProtocol().
VOID NTAPI ProtocolCloseAdapterComplete | ( | NDIS_HANDLE | BindingContext, |
NDIS_STATUS | Status | ||
) |
Called by NDIS to complete closing an adapter.
BindingContext | = Pointer to a device context (LAN_ADAPTER) |
Status | = Status of the operation |
Definition at line 120 of file lan.c.
Referenced by LANRegisterProtocol().
VOID NTAPI ProtocolOpenAdapterComplete | ( | NDIS_HANDLE | BindingContext, |
NDIS_STATUS | Status, | ||
NDIS_STATUS | OpenErrorStatus | ||
) |
Called by NDIS to complete opening of an adapter.
BindingContext | = Pointer to a device context (LAN_ADAPTER) |
Status | = Status of the operation |
OpenErrorStatus | = Additional status information |
Definition at line 99 of file lan.c.
Referenced by LANRegisterProtocol().
NDIS_STATUS NTAPI ProtocolReceive | ( | NDIS_HANDLE | BindingContext, |
NDIS_HANDLE | MacReceiveContext, | ||
PVOID | HeaderBuffer, | ||
UINT | HeaderBufferSize, | ||
PVOID | LookaheadBuffer, | ||
UINT | LookaheadBufferSize, | ||
UINT | PacketSize | ||
) |
Called by NDIS when a packet has been received on the physical link.
BindingContext | = Pointer to a device context (LAN_ADAPTER) |
MacReceiveContext | = Handle used by underlying NIC driver |
HeaderBuffer | = Pointer to a buffer containing the packet header |
HeaderBufferSize | = Number of bytes in HeaderBuffer |
LookaheadBuffer | = Pointer to a buffer containing buffered packet data |
LookaheadBufferSize | = Size of LookaheadBuffer. May be less than asked for |
PacketSize | = Overall size of the packet (not including header) |
Definition at line 355 of file lan.c.
Referenced by LANRegisterProtocol().
VOID NTAPI ProtocolReceiveComplete | ( | NDIS_HANDLE | BindingContext | ) |
Called by NDIS when we're done receiving data.
BindingContext | = Pointer to a device context (LAN_ADAPTER) |
Definition at line 444 of file lan.c.
Referenced by LANRegisterProtocol().
VOID NTAPI ProtocolRequestComplete | ( | NDIS_HANDLE | BindingContext, |
PNDIS_REQUEST | NdisRequest, | ||
NDIS_STATUS | Status | ||
) |
Called by NDIS to complete a request.
BindingContext | = Pointer to a device context (LAN_ADAPTER) |
NdisRequest | = Pointer to an object describing the request |
Status | = Status of the operation |
Definition at line 159 of file lan.c.
Referenced by LANRegisterProtocol().
VOID NTAPI ProtocolResetComplete | ( | NDIS_HANDLE | BindingContext, |
NDIS_STATUS | Status | ||
) |
Called by NDIS to complete resetting an adapter.
BindingContext | = Pointer to a device context (LAN_ADAPTER) |
Status | = Status of the operation |
Definition at line 142 of file lan.c.
Referenced by LANRegisterProtocol().
VOID NTAPI ProtocolSendComplete | ( | NDIS_HANDLE | BindingContext, |
PNDIS_PACKET | Packet, | ||
NDIS_STATUS | Status | ||
) |
Called by NDIS to complete sending process.
BindingContext | = Pointer to a device context (LAN_ADAPTER) |
Packet | = Pointer to a packet descriptor |
Status | = Status of the operation |
Definition at line 184 of file lan.c.
Referenced by LANRegisterProtocol(), and LANTransmit().
VOID NTAPI ProtocolStatus | ( | NDIS_HANDLE | BindingContext, |
NDIS_STATUS | GenerelStatus, | ||
PVOID | StatusBuffer, | ||
UINT | StatusBufferSize | ||
) |
Called by NDIS when the underlying driver has changed state.
BindingContext | = Pointer to a device context (LAN_ADAPTER) |
GenerelStatus | = A generel status code |
StatusBuffer | = Pointer to a buffer with medium-specific data |
StatusBufferSize | = Number of bytes in StatusBuffer |
Definition at line 461 of file lan.c.
Referenced by BindAdapter(), DoChangePassword(), LANRegisterProtocol(), LsaApCallPackage(), LsaApCallPackageUntrusted(), LsaCallAuthenticationPackage(), and NetUserChangePassword().
VOID NTAPI ProtocolStatusComplete | ( | NDIS_HANDLE | NdisBindingContext | ) |
Called by NDIS when a status-change has occurred.
BindingContext | = Pointer to a device context (LAN_ADAPTER) |
Definition at line 478 of file lan.c.
Referenced by LANRegisterProtocol().
VOID NTAPI ProtocolTransferDataComplete | ( | NDIS_HANDLE | BindingContext, |
PNDIS_PACKET | Packet, | ||
NDIS_STATUS | Status, | ||
UINT | BytesTransferred | ||
) |
Called by NDIS to complete reception of data.
BindingContext | = Pointer to a device context (LAN_ADAPTER) |
Packet | = Pointer to a packet descriptor |
Status | = Status of the operation |
BytesTransferred | = Number of bytes transferred |
Definition at line 210 of file lan.c.
Referenced by LANRegisterProtocol(), and ProtocolReceive().
PDEVICE_OBJECT LanDeviceObject = NULL |
Definition at line 15 of file lan.c.
Referenced by DriverEntry(), LANRegisterAdapter(), LANRegisterProtocol(), LANTransmitInternal(), LANUnregisterProtocol(), and ProtocolTransferDataComplete().