Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 301 of file router.c.
Referenced by ICMPSendDatagram(), ICMPTransmit(), RawIPSendDatagram(), TCPConnect(), TCPSendDataCallback(), and UDPSendDatagram().
{ PNEIGHBOR_CACHE_ENTRY NCE = NULL; PIP_INTERFACE Interface; TI_DbgPrint(DEBUG_RCACHE, ("Called. Destination (0x%X)\n", Destination)); TI_DbgPrint(DEBUG_RCACHE, ("Destination (%s)\n", A2S(Destination))); #if 0 TI_DbgPrint(MIN_TRACE, ("Displaying tree (before).\n")); PrintTree(RouteCache); #endif /* Check if the destination is on-link */ Interface = FindOnLinkInterface(Destination); if (Interface) { /* The destination address is on-link. Check our neighbor cache */ NCE = NBFindOrCreateNeighbor(Interface, Destination, FALSE); } else { /* Destination is not on any subnets we're on. Find a router to use */ NCE = RouterGetRoute(Destination); } if( NCE ) TI_DbgPrint(DEBUG_ROUTER,("Interface->MTU: %d\n", NCE->Interface->MTU)); return NCE; }