]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use fib[46]_lookup() in mtu calculations.
authorAlexander V. Chernikov <melifaro@FreeBSD.org>
Thu, 28 May 2020 08:00:08 +0000 (08:00 +0000)
committerAlexander V. Chernikov <melifaro@FreeBSD.org>
Thu, 28 May 2020 08:00:08 +0000 (08:00 +0000)
commita37a5246cacd996cbd24c62bab918ed03302a276
tree31eb4a22d686df847728f5fe38302c9df8d854a6
parentc74ce5cca3abe55f665bd21e0afd5a737939a151
Use fib[46]_lookup() in mtu calculations.

fib[46]_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.

Differential Revision: https://reviews.freebsd.org/D24974
sys/netinet/tcp_subr.c
sys/netinet6/icmp6.c