mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:56:00 +00:00
- Use RouteGetRouteToDestination instead of FindOnLinkInterface so we can get an interface for remote addresses
svn path=/branches/aicom-network-branch/; revision=44565
This commit is contained in:
parent
ab7bd8eb08
commit
12127c7eeb
1 changed files with 4 additions and 4 deletions
|
@ -74,7 +74,7 @@ POSK_IFADDR TCPFindInterface( void *ClientData,
|
||||||
OSK_UINT FindType,
|
OSK_UINT FindType,
|
||||||
OSK_SOCKADDR *ReqAddr,
|
OSK_SOCKADDR *ReqAddr,
|
||||||
OSK_IFADDR *Interface ) {
|
OSK_IFADDR *Interface ) {
|
||||||
PIP_INTERFACE IF;
|
PNEIGHBOR_CACHE_ENTRY NCE;
|
||||||
IP_ADDRESS Destination;
|
IP_ADDRESS Destination;
|
||||||
struct sockaddr_in *addr_in = (struct sockaddr_in *)ReqAddr;
|
struct sockaddr_in *addr_in = (struct sockaddr_in *)ReqAddr;
|
||||||
POSK_IFADDR InterfaceData;
|
POSK_IFADDR InterfaceData;
|
||||||
|
@ -91,10 +91,10 @@ POSK_IFADDR TCPFindInterface( void *ClientData,
|
||||||
|
|
||||||
TI_DbgPrint(DEBUG_TCPIF,("Address is %x\n", addr_in->sin_addr.s_addr));
|
TI_DbgPrint(DEBUG_TCPIF,("Address is %x\n", addr_in->sin_addr.s_addr));
|
||||||
|
|
||||||
IF = FindOnLinkInterface(&Destination);
|
NCE = RouteGetRouteToDestination(&Destination);
|
||||||
if (!IF) return NULL;
|
if (!NCE) return NULL;
|
||||||
|
|
||||||
InterfaceData = TCPGetInterfaceData(IF);
|
InterfaceData = TCPGetInterfaceData(NCE->Interface);
|
||||||
|
|
||||||
addr_in = (struct sockaddr_in *)
|
addr_in = (struct sockaddr_in *)
|
||||||
InterfaceData->ifa_addr;
|
InterfaceData->ifa_addr;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue