TdiBuildConnect() and RequestConnectionInfo parameter

Hi !

I’m juste writting a TDI client and I wonder about the parameter
‘RequestConnectionInfo’ of the TdiBuildConnect() macro (or TDI_CONNECT
request).

This parameter is a pointer to a TDI_CONNECTION_INFO structure as follow
(cut/paste from the DDK):

typedef struct _TDI_CONNECTION_INFORMATION {
LONG UserDataLength;
PVOID UserData;
LONG OptionsLength;
PVOID Options;
LONG RemoteAddressLength;
PVOID RemoteAddress;
} TDI_CONNECTION_INFORMATION, *PTDI_CONNECTION_INFORMATION;

However the documentation doesn’t explain clearly what should contain the
‘Options’ buffer. I think it depends on the transport driver type
(\Device\Tcp in my case) but I can found nowhere any information about
these options for the TCP transport driver (or UDP, etc.).

Thanks for any answer, hint, etc… :slight_smile:

Set UserDataLength = 0, OptionsLength = 0, UserData = NULL, Options = NULL.
Set RemoteAddressLength and RemoteAddress appropriately.

-Srin.

-----Original Message-----
From: Nicolas Mugnier [mailto:xxxxx@cesa.fr]
Sent: Friday, August 30, 2002 7:44 AM
To: NT Developers Interest List
Subject: [ntdev] TdiBuildConnect() and RequestConnectionInfo parameter

Hi !

I’m juste writting a TDI client and I wonder about the parameter
‘RequestConnectionInfo’ of the TdiBuildConnect() macro (or TDI_CONNECT
request).

This parameter is a pointer to a TDI_CONNECTION_INFO structure as follow
(cut/paste from the DDK):

typedef struct _TDI_CONNECTION_INFORMATION {
LONG UserDataLength;
PVOID UserData;
LONG OptionsLength;
PVOID Options;
LONG RemoteAddressLength;
PVOID RemoteAddress;
} TDI_CONNECTION_INFORMATION, *PTDI_CONNECTION_INFORMATION;

However the documentation doesn’t explain clearly what should contain the
‘Options’ buffer. I think it depends on the transport driver type
(\Device\Tcp in my case) but I can found nowhere any information about
these options for the TCP transport driver (or UDP, etc.).

Thanks for any answer, hint, etc… :slight_smile:


You are currently subscribed to ntdev as: xxxxx@nai.com
To unsubscribe send a blank email to %%email.unsub%%

> However the documentation doesn’t explain clearly what should
contain the

‘Options’ buffer. I think it depends on the transport driver type
(\Device\Tcp in my case) but I can found nowhere any information
about
these options for the TCP transport driver (or UDP, etc.).

Leave them as NULL usually. IIRC they are the IP-level options like
“Loose Source Route” etc which are embedded to packets.

Max