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
|
||||
*/
|
||||
NTSTATUS AddrBuildAddress(
|
||||
PTA_ADDRESS TdiAddress,
|
||||
PTRANSPORT_ADDRESS TaAddress,
|
||||
PIP_ADDRESS *Address,
|
||||
PUSHORT Port)
|
||||
{
|
||||
PTDI_ADDRESS_IP ValidAddr;
|
||||
PTA_ADDRESS TdiAddress = &TaAddress->Address[0];
|
||||
PIP_ADDRESS IPAddress;
|
||||
|
||||
if (TdiAddress->AddressType != TDI_ADDRESS_TYPE_IP) {
|
||||
TI_DbgPrint
|
||||
(MID_TRACE,("AddressType %x, Not valid\n",
|
||||
TdiAddress->AddressType));
|
||||
(MID_TRACE,("AddressType %x, Not valid\n", TdiAddress->AddressType));
|
||||
return STATUS_INVALID_ADDRESS;
|
||||
}
|
||||
if (TdiAddress->AddressLength < TDI_ADDRESS_LENGTH_IP) {
|
||||
|
|
|
@ -259,7 +259,7 @@ NTSTATUS TCPConnect
|
|||
InsertHeadList( &Connection->ConnectRequest, &Bucket->Entry );
|
||||
|
||||
Status = AddrBuildAddress
|
||||
((PTA_ADDRESS)ConnInfo->RemoteAddress,
|
||||
((PTRANSPORT_ADDRESS)ConnInfo->RemoteAddress,
|
||||
&RemoteAddress,
|
||||
&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
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: drivers/net/afd/afd/tdiconn.c
|
||||
|
|
|
@ -41,7 +41,7 @@ NTSTATUS AddrGetAddress(
|
|||
PUSHORT Port);
|
||||
|
||||
NTSTATUS AddrBuildAddress(
|
||||
PTA_ADDRESS TdiAddress,
|
||||
PTRANSPORT_ADDRESS TdiAddress,
|
||||
PIP_ADDRESS *Address,
|
||||
PUSHORT Port);
|
||||
|
||||
|
|
|
@ -218,7 +218,6 @@ CP
|
|||
CP
|
||||
/* Open address file object */
|
||||
|
||||
|
||||
/* Protocol depends on device object so find the protocol */
|
||||
if (DeviceObject == TCPDeviceObject)
|
||||
Protocol = IPPROTO_TCP;
|
||||
|
|
Loading…
Reference in a new issue