OpenBSD cvs log

created 2024-02-12T12:18:14Z
begin 2024-02-09T12:50:10Z
end 2024-02-09T14:02:12Z
path src/sys
commits 2

date 2024-02-09T14:02:11Z
author bluhm
files src/sys/net/route.c log diff annotate
src/sys/netinet/in.h log diff annotate
src/sys/netinet/in_pcb.c log diff annotate
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@

date 2024-02-09T14:02:12Z
author bluhm
files src/sys/netinet6/in6.h log diff annotate
src/sys/netinet6/in6_pcb.c log diff annotate
src/sys/netinet6/in6_src.c log diff annotate
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@