16#define MAX_ADAPTER_DESCRIPTION_LENGTH 128
35 (
"Getting IFEntry MIB (IF %08x LA %08x) (%04x:%d)\n",
50 (
"Getting interface speed\n"));
61 (
"IF Speed = %d * 100bps\n", OutData->
if_speed));
95 ID.tei_entity,
ID.tei_instance,
Size));
bool GetInterfaceName(const WCHAR *InterfaceString, WCHAR *buf, size_t size)
ACPI_SIZE strlen(const char *String)
#define AddrInitIPv4(IPAddress, RawAddress)
#define TI_DbgPrint(_t_, _x_)
#define ExAllocatePoolWithTag(hernya, size, tag)
VOID RemoveTDIInterfaceEntity(PIP_INTERFACE Interface)
TDI_STATUS InfoTdiQueryGetInterfaceMIB(TDIEntityID ID, PIP_INTERFACE Interface, PNDIS_BUFFER Buffer, PUINT BufferSize)
#define MAX_ADAPTER_DESCRIPTION_LENGTH
TDI_STATUS InfoTdiSetArptableMIB(PIP_INTERFACE IF, PVOID Buffer, UINT BufferSize)
TDI_STATUS InfoTdiQueryGetArptableMIB(TDIEntityID ID, PIP_INTERFACE Interface, PNDIS_BUFFER Buffer, PUINT BufferSize)
VOID InsertTDIInterfaceEntity(PIP_INTERFACE Interface)
TDI_STATUS InfoCopyOut(PCHAR DataOut, UINT SizeOut, PNDIS_BUFFER ClientBuf, PUINT ClientBufSize)
VOID RemoveEntityByContext(PVOID Context)
VOID AddEntity(ULONG EntityType, PVOID Context, ULONG Flags)
#define MIB_IF_TYPE_ETHERNET
#define MIB_IF_TYPE_LOOPBACK
#define MIB_IF_ADMIN_STATUS_UP
struct LAN_ADAPTER * PLAN_ADAPTER
NDIS_STATUS NDISCall(PLAN_ADAPTER Adapter, NDIS_REQUEST_TYPE Type, NDIS_OID OID, PVOID Buffer, UINT Length)
Send a request to NDIS.
#define memcpy(s1, s2, n)
#define ExFreePoolWithTag(_P, _T)
#define NDIS_STATUS_SUCCESS
@ NdisRequestQueryInformation
ULONG NBCopyNeighbors(PIP_INTERFACE Interface, PIPARP_ENTRY ArpTable)
PNEIGHBOR_CACHE_ENTRY NBLocateNeighbor(PIP_ADDRESS Address, PIP_INTERFACE Interface)
PNEIGHBOR_CACHE_ENTRY NBAddNeighbor(PIP_INTERFACE Interface, PIP_ADDRESS Address, PVOID LinkAddress, UINT LinkAddressLength, UCHAR Type, UINT EventTimer)
VOID NBRemoveNeighbor(PNEIGHBOR_CACHE_ENTRY NCE)
NTSTATUS GetInterfaceSpeed(PIP_INTERFACE Interface, PUINT Speed)
VOID GetInterfaceConnectionStatus(PIP_INTERFACE Interface, PULONG OperStatus)
#define OID_GEN_XMIT_ERROR
#define OID_GEN_RCV_ERROR
UCHAR if_physaddr[MAX_PHYSADDR_SIZE]
#define TDI_INVALID_PARAMETER
#define TDI_INVALID_REQUEST
#define FIELD_OFFSET(t, f)
#define RtlZeroMemory(Destination, Length)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE Interface
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize