Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jun 2021 08:06:09 GMT
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 224cf7b35b9b - main - tcp: fix compilation of IPv4-only builds
Message-ID:  <202106110806.15B869Cf030859@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=224cf7b35b9bbe8d075f6004249d850c620b7855

commit 224cf7b35b9bbe8d075f6004249d850c620b7855
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2021-06-11 07:50:46 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2021-06-11 07:50:46 +0000

    tcp: fix compilation of IPv4-only builds
    
    PR:                     256538
    Reported by:            iron.udjin@gmail.com
    MFC after:              3 days
    Sponsored by:           Netflix, Inc.
---
 sys/netinet/tcp_stacks/rack.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/netinet/tcp_stacks/rack.c b/sys/netinet/tcp_stacks/rack.c
index 5227ea59ba23..6ce866b77450 100644
--- a/sys/netinet/tcp_stacks/rack.c
+++ b/sys/netinet/tcp_stacks/rack.c
@@ -17677,9 +17677,11 @@ send:
 		th = rack->r_ctl.fsb.th;
 		udp = rack->r_ctl.fsb.udp;
 		if (udp) {
+#ifdef INET6
 			if (isipv6)
 				ulen = hdrlen + len - sizeof(struct ip6_hdr);
 			else
+#endif				/* INET6 */
 				ulen = hdrlen + len - sizeof(struct ip);
 			udp->uh_ulen = htons(ulen);
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106110806.15B869Cf030859>