From: bluhm Date: Tue, 13 Jun 2023 19:34:12 +0000 (+0000) Subject: Fix a typo with TSO logic in ip6_output(). Of course compare ph_mss X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5de035283b4b7f23a27847b6e4011bc3e2da7984;p=openbsd Fix a typo with TSO logic in ip6_output(). Of course compare ph_mss with if_mtu and not the packet checksum flags. ph_mss contains the size of the copped packets. OK jan@ --- diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index 05c11898e01..f2fa3511943 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_output.c,v 1.277 2023/05/22 16:08:34 bluhm Exp $ */ +/* $OpenBSD: ip6_output.c,v 1.278 2023/06/13 19:34:12 bluhm Exp $ */ /* $KAME: ip6_output.c,v 1.172 2001/03/25 09:55:56 itojun Exp $ */ /* @@ -688,7 +688,7 @@ reroute: dontfrag = 0; if (dontfrag && /* case 2-b */ (ISSET(m->m_pkthdr.csum_flags, M_TCP_TSO) ? - m->m_pkthdr.csum_flags : tlen) > ifp->if_mtu) { + m->m_pkthdr.ph_mss : tlen) > ifp->if_mtu) { #ifdef IPSEC if (ip_mtudisc) ipsec_adjust_mtu(m, mtu);