Author: cgutman
Date: Sun Dec 13 17:22:17 2009
New Revision: 44565
URL:
http://svn.reactos.org/svn/reactos?rev=44565&view=rev
Log:
- Use RouteGetRouteToDestination instead of FindOnLinkInterface so we can get an
interface for remote addresses
Modified:
branches/aicom-network-branch/lib/drivers/ip/transport/tcp/if.c
Modified: branches/aicom-network-branch/lib/drivers/ip/transport/tcp/if.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-branch/lib/driver…
==============================================================================
--- branches/aicom-network-branch/lib/drivers/ip/transport/tcp/if.c [iso-8859-1]
(original)
+++ branches/aicom-network-branch/lib/drivers/ip/transport/tcp/if.c [iso-8859-1] Sun Dec
13 17:22:17 2009
@@ -74,7 +74,7 @@
OSK_UINT FindType,
OSK_SOCKADDR *ReqAddr,
OSK_IFADDR *Interface ) {
- PIP_INTERFACE IF;
+ PNEIGHBOR_CACHE_ENTRY NCE;
IP_ADDRESS Destination;
struct sockaddr_in *addr_in = (struct sockaddr_in *)ReqAddr;
POSK_IFADDR InterfaceData;
@@ -91,10 +91,10 @@
TI_DbgPrint(DEBUG_TCPIF,("Address is %x\n", addr_in->sin_addr.s_addr));
- IF = FindOnLinkInterface(&Destination);
- if (!IF) return NULL;
+ NCE = RouteGetRouteToDestination(&Destination);
+ if (!NCE) return NULL;
- InterfaceData = TCPGetInterfaceData(IF);
+ InterfaceData = TCPGetInterfaceData(NCE->Interface);
addr_in = (struct sockaddr_in *)
InterfaceData->ifa_addr;