git: e22246179011 - main - rack: mask and tclass are only used for INET6.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 10 Apr 2023 19:21:49 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=e222461790111ead1413b95810f724deb90b3e4a commit e222461790111ead1413b95810f724deb90b3e4a Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2023-04-10 19:21:03 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-04-10 19:21:03 +0000 rack: mask and tclass are only used for INET6. This fixes the LINT-NOINET6 build. --- sys/netinet/tcp_stacks/rack.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/netinet/tcp_stacks/rack.c b/sys/netinet/tcp_stacks/rack.c index 4185b50737af..a1dda9889549 100644 --- a/sys/netinet/tcp_stacks/rack.c +++ b/sys/netinet/tcp_stacks/rack.c @@ -23369,6 +23369,7 @@ rack_set_sockopt(struct tcpcb *tp, struct sockopt *sopt) struct inpcb *inp = tptoinpcb(tp); #ifdef INET6 struct ip6_hdr *ip6; + int32_t mask, tclass; #endif #ifdef INET struct ip *ip; @@ -23376,7 +23377,7 @@ rack_set_sockopt(struct tcpcb *tp, struct sockopt *sopt) struct tcp_rack *rack; struct tcp_hybrid_req hybrid; uint64_t loptval; - int32_t error = 0, mask, optval, tclass; + int32_t error = 0, optval; rack = (struct tcp_rack *)tp->t_fb_ptr; if (rack == NULL) {