Skip to content

Commit

Permalink
ip6_output(): if mtu is not yet computed for ipsec hook, use ifp mtu
Browse files Browse the repository at this point in the history
Sponsored by:	NVidia networking
  • Loading branch information
kostikbel committed Dec 16, 2024
1 parent 94e94d2 commit f870740
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sys/netinet6/ip6_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,8 @@ ip6_output(struct mbuf *m0, struct ip6_pktopts *opt,
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;
Expand Down

0 comments on commit f870740

Please sign in to comment.