Author: melifaro Date: Thu Apr 23 06:55:33 2020 New Revision: 360217 URL: https://svnweb.freebsd.org/changeset/base/360217
Log: Unbreak LINT-NOINET[6] builds broken in r360191. Reported by: np Modified: head/sys/netinet/tcp_offload.c Modified: head/sys/netinet/tcp_offload.c ============================================================================== --- head/sys/netinet/tcp_offload.c Thu Apr 23 04:59:07 2020 (r360216) +++ head/sys/netinet/tcp_offload.c Thu Apr 23 06:55:33 2020 (r360217) @@ -30,6 +30,7 @@ __FBSDID("$FreeBSD$"); #include "opt_inet.h" +#include "opt_inet6.h" #include <sys/param.h> #include <sys/systm.h> @@ -76,12 +77,19 @@ tcp_offload_connect(struct socket *so, struct sockaddr NET_EPOCH_ENTER(et); nh = NULL; +#ifdef INET if (nam->sa_family == AF_INET) nh = fib4_lookup(0, ((struct sockaddr_in *)nam)->sin_addr, NHR_NONE, 0, 0); - else if (nam->sa_family == AF_INET6) +#endif +#if defined(INET) && defined(INET6) + else +#endif +#ifdef INET6 + if (nam->sa_family == AF_INET6) nh = fib6_lookup(0, &((struct sockaddr_in6 *)nam)->sin6_addr, NHR_NONE, 0, 0); +#endif if (nh == NULL) { NET_EPOCH_EXIT(et); return (EHOSTUNREACH); _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"