24 switch( AddressType ) {
37 DbgPrint(
"TdiAddressSizeFromType - invalid type: %x\n", AddressType);
49 AddrLen += 2 *
sizeof(
USHORT );
51 DPRINT(
"AddrLen %x\n", AddrLen);
63 AddrLen +=
sizeof(
ULONG);
65 DPRINT(
"AddrLen %x\n", AddrLen);
79 DPRINT(
"AddrLen %x\n", AddrLen);
110 A->TAAddressCount = 1;
113 if (!
A->Address[0].AddressLength)
116 A->Address[0].AddressType = AddressType;
158 ULONG TdiAddressSize;
164 DPRINT(
"Invalid parameter\n");
194 ULONG TdiAddressSize;
198 if (!TdiAddressSize) {
199 DPRINT(
"Invalid parameter\n");
200 *ConnectionInfo =
NULL;
209 *ConnectionInfo =
NULL;
221 *ConnectionInfo = ConnInfo;
250 ( ConnectionInfo,
Address->Address[0].AddressType );
#define TAG_AFD_TDI_CONNECTION_INFORMATION
#define TAG_AFD_TRANSPORT_ADDRESS
#define NT_SUCCESS(StatCode)
#define ExAllocatePoolWithTag(hernya, size, tag)
#define EXCEPTION_EXECUTE_HANDLER
#define ExFreePoolWithTag(_P, _T)
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
#define _SEH2_GetExceptionCode()
#define _SEH2_EXCEPT(...)
struct _TDI_CONNECTION_INFORMATION * PTDI_CONNECTION_INFORMATION
#define TDI_ADDRESS_LENGTH_VNS
#define TDI_ADDRESS_TYPE_VNS
struct _TRANSPORT_ADDRESS * PTRANSPORT_ADDRESS
#define TDI_ADDRESS_LENGTH_APPLETALK
#define TDI_ADDRESS_LENGTH_IPX
#define TDI_ADDRESS_TYPE_NETBIOS
#define TDI_ADDRESS_LENGTH_IP
#define TDI_ADDRESS_TYPE_IPX
#define TDI_ADDRESS_TYPE_IP
#define TDI_ADDRESS_TYPE_APPLETALK
#define TDI_ADDRESS_LENGTH_NETBIOS
NTSTATUS TdiBuildNullConnectionInfo(PTDI_CONNECTION_INFORMATION *ConnectionInfo, ULONG Type)
Builds a NULL TDI connection information structure.
UINT TdiAddressSizeFromType(UINT AddressType)
NTSTATUS TdiBuildConnectionInfoInPlace(PTDI_CONNECTION_INFORMATION ConnectionInfo, PTRANSPORT_ADDRESS Address)
UINT TaLengthOfTransportAddress(PTRANSPORT_ADDRESS Addr)
UINT TaLengthOfTransportAddressByType(UINT AddressType)
VOID TaCopyTransportAddressInPlace(PTRANSPORT_ADDRESS Target, PTRANSPORT_ADDRESS Source)
NTSTATUS TdiBuildNullConnectionInfoInPlace(PTDI_CONNECTION_INFORMATION ConnInfo, ULONG Type)
Builds a NULL TDI connection information structure.
NTSTATUS TdiBuildConnectionInfo(PTDI_CONNECTION_INFORMATION *ConnectionInfo, PTRANSPORT_ADDRESS Address)
NTSTATUS TdiBuildNullTransportAddressInPlace(PTRANSPORT_ADDRESS A, UINT AddressType)
PTRANSPORT_ADDRESS TaBuildNullTransportAddress(UINT AddressType)
UINT TaLengthOfAddress(PTA_ADDRESS Addr)
PTRANSPORT_ADDRESS TaCopyTransportAddress(PTRANSPORT_ADDRESS OtherAddress)
#define RtlCopyMemory(Destination, Source, Length)
#define RtlZeroMemory(Destination, Length)
#define STATUS_INVALID_PARAMETER
#define STATUS_INSUFFICIENT_RESOURCES