IP4_ROUTE_CACHE_ENTRY *CacheEntry;\r
IP4_INTERFACE *IpIf;\r
IP4_ADDR Gateway;\r
+ IP4_ADDR Src;\r
+ IP4_ADDR Dst;\r
\r
//\r
// Find the interface whose IP address is the source of the\r
continue;\r
}\r
\r
- CacheEntry = Ip4FindRouteCache (\r
- Ip4Instance->RouteTable,\r
- NTOHL (Icmp->IpHead.Dst),\r
- NTOHL (Icmp->IpHead.Src)\r
- );\r
+ Dst = NTOHL (Icmp->IpHead.Dst);\r
+ Src = NTOHL (Icmp->IpHead.Src);\r
+ CacheEntry = Ip4FindRouteCache (Ip4Instance->RouteTable, Dst, Src);\r
\r
//\r
// Only update the route cache's gateway if the source of the\r