]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Switch ip_output/icmp_reflect rt lookup calls with fib4_lookup.
authorAlexander V. Chernikov <melifaro@FreeBSD.org>
Thu, 28 May 2020 07:31:53 +0000 (07:31 +0000)
committerAlexander V. Chernikov <melifaro@FreeBSD.org>
Thu, 28 May 2020 07:31:53 +0000 (07:31 +0000)
commit3553b3007fa82e127fec989df0617343cc574222
tree1dbda3e76b6f9fd0840c962599babc22711e06a9
parent1483c1c50897ca6d47a95a304fe05c53a0035f14
Switch ip_output/icmp_reflect rt lookup calls with fib4_lookup.

fib4_lookup_nh_ represents pre-epoch generation of fib api,
providing less guarantees over pointer validness and requiring
on-stack data copying.

Conversion is straight-forwarded, as the only 2 differences are
requirement of running in network epoch and the need to handle
RTF_GATEWAY case in the caller code.

Reviewed by: ae
Differential Revision: https://reviews.freebsd.org/D24976
sys/netinet/ip_icmp.c
sys/netinet/ip_output.c