mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
Final propogation of TDI_CONNECTION_INFORMATION/TRANSPORT_ADDRESS changes.
svn path=/trunk/; revision=11175
This commit is contained in:
parent
bab3b21d32
commit
8eb5ca6ffa
5 changed files with 12 additions and 13 deletions
|
@ -169,17 +169,17 @@ NTSTATUS AddrGetAddress(
|
||||||
* Status of operation
|
* Status of operation
|
||||||
*/
|
*/
|
||||||
NTSTATUS AddrBuildAddress(
|
NTSTATUS AddrBuildAddress(
|
||||||
PTA_ADDRESS TdiAddress,
|
PTRANSPORT_ADDRESS TaAddress,
|
||||||
PIP_ADDRESS *Address,
|
PIP_ADDRESS *Address,
|
||||||
PUSHORT Port)
|
PUSHORT Port)
|
||||||
{
|
{
|
||||||
PTDI_ADDRESS_IP ValidAddr;
|
PTDI_ADDRESS_IP ValidAddr;
|
||||||
|
PTA_ADDRESS TdiAddress = &TaAddress->Address[0];
|
||||||
PIP_ADDRESS IPAddress;
|
PIP_ADDRESS IPAddress;
|
||||||
|
|
||||||
if (TdiAddress->AddressType != TDI_ADDRESS_TYPE_IP) {
|
if (TdiAddress->AddressType != TDI_ADDRESS_TYPE_IP) {
|
||||||
TI_DbgPrint
|
TI_DbgPrint
|
||||||
(MID_TRACE,("AddressType %x, Not valid\n",
|
(MID_TRACE,("AddressType %x, Not valid\n", TdiAddress->AddressType));
|
||||||
TdiAddress->AddressType));
|
|
||||||
return STATUS_INVALID_ADDRESS;
|
return STATUS_INVALID_ADDRESS;
|
||||||
}
|
}
|
||||||
if (TdiAddress->AddressLength < TDI_ADDRESS_LENGTH_IP) {
|
if (TdiAddress->AddressLength < TDI_ADDRESS_LENGTH_IP) {
|
||||||
|
|
|
@ -259,7 +259,7 @@ NTSTATUS TCPConnect
|
||||||
InsertHeadList( &Connection->ConnectRequest, &Bucket->Entry );
|
InsertHeadList( &Connection->ConnectRequest, &Bucket->Entry );
|
||||||
|
|
||||||
Status = AddrBuildAddress
|
Status = AddrBuildAddress
|
||||||
((PTA_ADDRESS)ConnInfo->RemoteAddress,
|
((PTRANSPORT_ADDRESS)ConnInfo->RemoteAddress,
|
||||||
&RemoteAddress,
|
&RemoteAddress,
|
||||||
&RemotePort);
|
&RemotePort);
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: tdiconn.c,v 1.3 2004/10/03 20:36:45 arty Exp $
|
/* $Id: tdiconn.c,v 1.4 2004/10/03 21:44:42 arty Exp $
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
* FILE: drivers/net/afd/afd/tdiconn.c
|
* FILE: drivers/net/afd/afd/tdiconn.c
|
||||||
|
|
|
@ -41,7 +41,7 @@ NTSTATUS AddrGetAddress(
|
||||||
PUSHORT Port);
|
PUSHORT Port);
|
||||||
|
|
||||||
NTSTATUS AddrBuildAddress(
|
NTSTATUS AddrBuildAddress(
|
||||||
PTA_ADDRESS TdiAddress,
|
PTRANSPORT_ADDRESS TdiAddress,
|
||||||
PIP_ADDRESS *Address,
|
PIP_ADDRESS *Address,
|
||||||
PUSHORT Port);
|
PUSHORT Port);
|
||||||
|
|
||||||
|
|
|
@ -218,7 +218,6 @@ CP
|
||||||
CP
|
CP
|
||||||
/* Open address file object */
|
/* Open address file object */
|
||||||
|
|
||||||
|
|
||||||
/* Protocol depends on device object so find the protocol */
|
/* Protocol depends on device object so find the protocol */
|
||||||
if (DeviceObject == TCPDeviceObject)
|
if (DeviceObject == TCPDeviceObject)
|
||||||
Protocol = IPPROTO_TCP;
|
Protocol = IPPROTO_TCP;
|
||||||
|
|
Loading…
Reference in a new issue