15#define IEEE_802_ADDR_LENGTH 6
24#define MAX_MEDIA_ETH sizeof(ETH_HEADER)
27#define BCAST_ETH_MASK 0x01
30#define BCAST_ETH_CHECK 0x01
33#define BCAST_ETH_OFFSET 0x00
36#define IP_MAX_RECV_BACKLOG 0x20
65#define LAN_STATE_OPENING 0
66#define LAN_STATE_RESETTING 1
67#define LAN_STATE_STARTED 2
68#define LAN_STATE_STOPPED 3
71#define LOOKAHEAD_SIZE 128
75#define ETYPE_IPv4 WH2N(0x0800)
76#define ETYPE_IPv6 WH2N(0x86DD)
77#define ETYPE_ARP WH2N(0x0806)
80#define LAN_PROTO_IPv4 0x0000
81#define LAN_PROTO_IPv6 0x0001
82#define LAN_PROTO_ARP 0x0002
struct ETH_HEADER * PETH_HEADER
struct LAN_ADAPTER LAN_ADAPTER
VOID LANUnregisterProtocol(VOID)
Unregisters this protocol driver with NDIS.
struct LAN_ADAPTER * PLAN_ADAPTER
NDIS_STATUS LANRegisterAdapter(PNDIS_STRING AdapterName, PNDIS_STRING RegistryPath)
Registers protocol with an NDIS adapter.
NDIS_STATUS LANUnregisterAdapter(PLAN_ADAPTER Adapter)
Unregisters protocol with NDIS adapter.
NTSTATUS LANRegisterProtocol(PNDIS_STRING Name)
Registers this protocol driver with NDIS.
struct ETH_HEADER ETH_HEADER
NDIS_STATUS NDISCall(PLAN_ADAPTER Adapter, NDIS_REQUEST_TYPE Type, NDIS_OID OID, PVOID Buffer, UINT Length)
Send a request to NDIS.
enum _NDIS_REQUEST_TYPE NDIS_REQUEST_TYPE
_Must_inspect_result_ _Out_ PNDIS_STATUS _Out_ PNDIS_STATUS _Out_ PNDIS_HANDLE _Out_ PUINT _In_ UINT _In_ NDIS_HANDLE _In_ NDIS_HANDLE _In_ PNDIS_STRING AdapterName
enum _NDIS_MEDIUM NDIS_MEDIUM
_In_ ULONG _In_ ULONG _In_ ULONG Length
UCHAR HWAddress[IEEE_802_ADDR_LENGTH]
NTSTATUS TcpipLanGetDwordOid(PIP_INTERFACE Interface, NDIS_OID Oid, PULONG Result)
#define IEEE_802_ADDR_LENGTH
_Must_inspect_result_ _In_ PDRIVER_OBJECT _In_ PCUNICODE_STRING RegistryPath
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE Interface
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO