diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2024-11-27 14:27:42 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2024-12-16 12:10:29 +0000 |
commit | f8707400087361394703271b412477ff41583ab6 (patch) | |
tree | f603342a11a53dbd6698d0907427b3bfa1601437 | |
parent | 94e94d2dddfa43aa0aa3ad8aa3ab6d72363e4bd0 (diff) |
ip6_output(): if mtu is not yet computed for ipsec hook, use ifp mtu
Sponsored by: NVidia networking
-rw-r--r-- | sys/netinet6/ip6_output.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index 7eea64bb6344..9e4985cdc6cd 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -798,7 +798,8 @@ nonh6lookup: error = ENOBUFS; goto bad; } - if ((error = IPSEC_OUTPUT(ipv6, ifp, m, inp, mtu)) != 0) { + if ((error = IPSEC_OUTPUT(ipv6, ifp, m, inp, mtu == 0 ? + ifp->if_mtu : mtu)) != 0) { if (error == EINPROGRESS) error = 0; goto done; |