git: f87074000873 - main - ip6_output(): if mtu is not yet computed for ipsec hook, use ifp mtu
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 16 Dec 2024 12:10:59 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=f8707400087361394703271b412477ff41583ab6
commit f8707400087361394703271b412477ff41583ab6
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-11-27 14:27:42 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-12-16 12:10:29 +0000
ip6_output(): if mtu is not yet computed for ipsec hook, use ifp mtu
Sponsored by: NVidia networking
---
sys/netinet6/ip6_output.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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;