git: 7a2030a10686 - stable/13 - tcp: fix compilation of IPv4-only builds

Michael Tuexen tuexen at FreeBSD.org
Mon Jun 14 08:59:29 UTC 2021


The branch stable/13 has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=7a2030a10686d156270c770d96f4ba4f86d4c58e

commit 7a2030a10686d156270c770d96f4ba4f86d4c58e
Author:     Michael Tuexen <tuexen at FreeBSD.org>
AuthorDate: 2021-06-11 07:50:46 +0000
Commit:     Michael Tuexen <tuexen at FreeBSD.org>
CommitDate: 2021-06-13 23:27:17 +0000

    tcp: fix compilation of IPv4-only builds
    
    PR:                     256538
    Reported by:            iron.udjin at gmail.com
    Sponsored by:           Netflix, Inc.
    
    (cherry picked from commit 224cf7b35b9bbe8d075f6004249d850c620b7855)
---
 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 f010c958951c..c4938e7b15a6 100644
--- a/sys/netinet/tcp_stacks/rack.c
+++ b/sys/netinet/tcp_stacks/rack.c
@@ -17673,9 +17673,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);
 		}


More information about the dev-commits-src-branches mailing list