CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]   2024/02/09 07:02:12

Modified files:
        sys/net        : route.c 
        sys/netinet    : in.h in_pcb.c 
        sys/netinet6   : in6.h in6_pcb.c in6_src.c 

Log message:
Route cache function returns hit or miss.

The route_cache() function can easily return whether it was a cache
hit or miss.  Then the logic to perform a route lookup gets a bit
simpler.  Some more complicated if (ro->ro_rt == NULL) checks still
exist elsewhere.
Also use route cache in in_pcbselsrc() instead of filling struct
route manually.

OK claudio@

Reply via email to