Module Name: src Committed By: rin Date: Thu Dec 13 20:44:33 UTC 2018
Modified Files: src/sys/net: ether_sw_offload.c Log Message: Also take care of non-DIAGNOSTIC case. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/net/ether_sw_offload.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/net/ether_sw_offload.c diff -u src/sys/net/ether_sw_offload.c:1.2 src/sys/net/ether_sw_offload.c:1.3 --- src/sys/net/ether_sw_offload.c:1.2 Thu Dec 13 12:13:33 2018 +++ src/sys/net/ether_sw_offload.c Thu Dec 13 20:44:33 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: ether_sw_offload.c,v 1.2 2018/12/13 12:13:33 rin Exp $ */ +/* $NetBSD: ether_sw_offload.c,v 1.3 2018/12/13 20:44:33 rin Exp $ */ /* * Copyright (c) 2018 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ #endif #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ether_sw_offload.c,v 1.2 2018/12/13 12:13:33 rin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ether_sw_offload.c,v 1.3 2018/12/13 20:44:33 rin Exp $"); #include <sys/param.h> #include <sys/types.h> @@ -68,7 +68,11 @@ ether_sw_offload_tx(struct ifnet *ifp, s { struct ether_header *ep; int flags, ehlen; +#ifdef INET6 bool v6; +#else + bool v6 __diagused; +#endif KASSERT(m->m_flags & M_PKTHDR); flags = m->m_pkthdr.csum_flags;