ReactOS 0.4.16-dev-725-g22577ae
|
Go to the source code of this file.
Classes | |
struct | _LAN_WQ_ITEM |
struct | _RECONFIGURE_CONTEXT |
Macros | |
#define | CCS_ROOT L"\\Registry\\Machine\\SYSTEM\\CurrentControlSet" |
#define | TCPIP_GUID L"{4D36E972-E325-11CE-BFC1-08002BE10318}" |
Typedefs | |
typedef struct _LAN_WQ_ITEM | LAN_WQ_ITEM |
typedef struct _LAN_WQ_ITEM * | PLAN_WQ_ITEM |
typedef struct _RECONFIGURE_CONTEXT | RECONFIGURE_CONTEXT |
typedef struct _RECONFIGURE_CONTEXT * | PRECONFIGURE_CONTEXT |
#define CCS_ROOT L"\\Registry\\Machine\\SYSTEM\\CurrentControlSet" |
typedef struct _LAN_WQ_ITEM LAN_WQ_ITEM |
typedef struct _LAN_WQ_ITEM * PLAN_WQ_ITEM |
typedef struct _RECONFIGURE_CONTEXT * PRECONFIGURE_CONTEXT |
NTSTATUS NTAPI AppendUnicodeString | ( | PUNICODE_STRING | ResultFirst, |
PUNICODE_STRING | Second, | ||
BOOLEAN | Deallocate | ||
) |
Definition at line 1138 of file lan.c.
Referenced by CheckForDeviceDesc(), and GetName().
BOOLEAN BindAdapter | ( | PLAN_ADAPTER | Adapter, |
PNDIS_STRING | RegistryPath | ||
) |
Definition at line 1305 of file lan.c.
|
static |
Definition at line 1162 of file lan.c.
Referenced by FindDeviceDescForAdapter().
|
static |
Definition at line 1214 of file lan.c.
Referenced by BindAdapter().
VOID FreeAdapter | ( | PLAN_ADAPTER | Adapter | ) |
VOID GetName | ( | PUNICODE_STRING | RegistryKey, |
PUNICODE_STRING | OutName | ||
) |
Definition at line 1285 of file lan.c.
Referenced by BindAdapter().
NDIS_STATUS GetPacketTypeFromHeaderBuffer | ( | PLAN_ADAPTER | Adapter, |
PVOID | HeaderBuffer, | ||
ULONG | HeaderBufferSize, | ||
PULONG | PacketType | ||
) |
Definition at line 94 of file lan.c.
Referenced by GetPacketTypeFromNdisPacket(), and ProtocolReceive().
NDIS_STATUS GetPacketTypeFromNdisPacket | ( | PLAN_ADAPTER | Adapter, |
PNDIS_PACKET | NdisPacket, | ||
PULONG | PacketType | ||
) |
Definition at line 133 of file lan.c.
Referenced by LanReceiveWorker().
Definition at line 307 of file lan.c.
Referenced by LanSubmitReceiveWork().
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 1436 of file lan.c.
NTSTATUS LANRegisterProtocol | ( | PNDIS_STRING | Name | ) |
Registers this protocol driver with NDIS.
Name | = Name of this protocol driver |
Definition at line 1657 of file lan.c.
Referenced by DriverEntry().
VOID LanSubmitReceiveWork | ( | NDIS_HANDLE | BindingContext, |
PNDIS_PACKET | Packet, | ||
UINT | BytesTransferred, | ||
BOOLEAN | LegacyReceive | ||
) |
Definition at line 388 of file lan.c.
Referenced by ProtocolReceivePacket(), and ProtocolTransferDataComplete().
VOID LANTransmit | ( | PVOID | Context, |
PNDIS_PACKET | NdisPacket, | ||
UINT | Offset, | ||
PVOID | LinkAddress, | ||
USHORT | Type | ||
) |
Definition at line 947 of file lan.c.
NDIS_STATUS LANUnregisterAdapter | ( | PLAN_ADAPTER | Adapter | ) |
Unregisters protocol with NDIS adapter.
Adapter | = Pointer to a LAN_ADAPTER structure |
Definition at line 1565 of file lan.c.
Unregisters this protocol driver with NDIS.
Definition at line 1612 of file lan.c.
Referenced by TiUnload().
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 41 of file lan.c.
Referenced by InfoTdiQueryGetInterfaceMIB().
|
static |
Definition at line 1078 of file lan.c.
Referenced by CheckForDeviceDesc(), and FindDeviceDescForAdapter().
VOID NTAPI ProtocolBindAdapter | ( | OUT PNDIS_STATUS | Status, |
IN NDIS_HANDLE | BindContext, | ||
IN PNDIS_STRING | DeviceName, | ||
IN PVOID | SystemSpecific1, | ||
IN PVOID | SystemSpecific2 | ||
) |
Definition at line 925 of file lan.c.
VOID NTAPI ProtocolCloseAdapterComplete | ( | NDIS_HANDLE | BindingContext, |
NDIS_STATUS | Status | ||
) |
VOID NTAPI ProtocolOpenAdapterComplete | ( | NDIS_HANDLE | BindingContext, |
NDIS_STATUS | Status, | ||
NDIS_STATUS | OpenErrorStatus | ||
) |
NDIS_STATUS NTAPI ProtocolPnPEvent | ( | NDIS_HANDLE | NdisBindingContext, |
PNET_PNP_EVENT | PnPEvent | ||
) |
Definition at line 897 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 | ||
) |
Definition at line 462 of file lan.c.
VOID NTAPI ProtocolReceiveComplete | ( | NDIS_HANDLE | BindingContext | ) |
INT NTAPI ProtocolReceivePacket | ( | NDIS_HANDLE | BindingContext, |
PNDIS_PACKET | NdisPacket | ||
) |
Definition at line 442 of file lan.c.
Referenced by LANRegisterProtocol().
VOID NTAPI ProtocolRequestComplete | ( | NDIS_HANDLE | BindingContext, |
PNDIS_REQUEST | NdisRequest, | ||
NDIS_STATUS | Status | ||
) |
VOID NTAPI ProtocolResetComplete | ( | NDIS_HANDLE | BindingContext, |
NDIS_STATUS | Status | ||
) |
VOID NTAPI ProtocolSendComplete | ( | NDIS_HANDLE | BindingContext, |
PNDIS_PACKET | Packet, | ||
NDIS_STATUS | Status | ||
) |
VOID NTAPI ProtocolStatus | ( | NDIS_HANDLE | BindingContext, |
NDIS_STATUS | GeneralStatus, | ||
PVOID | StatusBuffer, | ||
UINT | StatusBufferSize | ||
) |
Definition at line 808 of file lan.c.
VOID NTAPI ProtocolStatusComplete | ( | NDIS_HANDLE | NdisBindingContext | ) |
VOID NTAPI ProtocolTransferDataComplete | ( | NDIS_HANDLE | BindingContext, |
PNDIS_PACKET | Packet, | ||
NDIS_STATUS | Status, | ||
UINT | BytesTransferred | ||
) |
Definition at line 410 of file lan.c.
VOID NTAPI ProtocolUnbindAdapter | ( | PNDIS_STATUS | Status, |
NDIS_HANDLE | ProtocolBindingContext, | ||
NDIS_HANDLE | UnbindContext | ||
) |
Definition at line 1648 of file lan.c.
Referenced by LANRegisterProtocol().
BOOLEAN ReadIpConfiguration | ( | PIP_INTERFACE | Interface | ) |
Definition at line 568 of file lan.c.
Referenced by ReconfigureAdapter().
|
static |
Definition at line 1087 of file lan.c.
Referenced by CheckForDeviceDesc().
BOOLEAN ReconfigureAdapter | ( | PRECONFIGURE_CONTEXT | Context | ) |
Definition at line 717 of file lan.c.
Referenced by ReconfigureAdapterWorker().
Definition at line 797 of file lan.c.
Referenced by ProtocolStatus().
NTSTATUS TcpipLanGetDwordOid | ( | PIP_INTERFACE | Interface, |
NDIS_OID | Oid, | ||
PULONG | Result | ||
) |
Definition at line 183 of file lan.c.
VOID UnbindAdapter | ( | PLAN_ADAPTER | Adapter | ) |
Definition at line 1416 of file lan.c.
Referenced by LANUnregisterAdapter().
LIST_ENTRY AdapterListHead |
Definition at line 38 of file lan.c.
Referenced by DriverEntry(), LANRegisterAdapter(), LANRegisterProtocol(), LANUnregisterProtocol(), and ndisBindMiniportsToProtocol().
KSPIN_LOCK AdapterListLock |
Definition at line 39 of file lan.c.
Referenced by DriverEntry(), LANRegisterAdapter(), LANRegisterProtocol(), and LANUnregisterProtocol().
_Out_ PNDIS_HANDLE NdisProtocolHandle = (NDIS_HANDLE)NULL |
Definition at line 36 of file lan.c.
Referenced by LANRegisterAdapter(), LANRegisterProtocol(), LANUnregisterProtocol(), NdisDeregisterProtocol(), NdisOpenAdapter(), NdisReEnumerateProtocolBindings(), and NdisRegisterProtocol().
Definition at line 37 of file lan.c.
Referenced by LANRegisterProtocol(), and LANUnregisterProtocol().
UINT TransferDataCalled = 0 |
Definition at line 17 of file lan.c.
Referenced by ProtocolReceive(), and ProtocolTransferDataComplete().
UINT TransferDataCompleteCalled = 0 |
Definition at line 18 of file lan.c.
Referenced by ProtocolTransferDataComplete().