The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=224cf7b35b9bbe8d075f6004249d850c620b7855
commit 224cf7b35b9bbe8d075f6004249d850c620b7855 Author: Michael Tuexen <tue...@freebsd.org> AuthorDate: 2021-06-11 07:50:46 +0000 Commit: Michael Tuexen <tue...@freebsd.org> CommitDate: 2021-06-11 07:50:46 +0000 tcp: fix compilation of IPv4-only builds PR: 256538 Reported by: iron.ud...@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); } _______________________________________________ dev-commits-src-main@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"