Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Dec 2019 20:55:08 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r355302 - in stable: 11/sys/contrib/ipfilter/netinet 12/sys/contrib/ipfilter/netinet
Message-ID:  <201912022055.xB2Kt8xb080181@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Mon Dec  2 20:55:08 2019
New Revision: 355302
URL: https://svnweb.freebsd.org/changeset/base/355302

Log:
  MFC r355140:
  
  Remove redundant #ifdef'd function definitions.

Modified:
  stable/12/sys/contrib/ipfilter/netinet/fil.c
Directory Properties:
  stable/12/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/11/sys/contrib/ipfilter/netinet/fil.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/12/sys/contrib/ipfilter/netinet/fil.c
==============================================================================
--- stable/12/sys/contrib/ipfilter/netinet/fil.c	Mon Dec  2 20:51:46 2019	(r355301)
+++ stable/12/sys/contrib/ipfilter/netinet/fil.c	Mon Dec  2 20:55:08 2019	(r355302)
@@ -10279,7 +10279,6 @@ ipf_inet6_mask_del(bits, mask, mtab)
 	ASSERT(mtab->imt6_max >= 0);
 }
 
-#ifdef	_KERNEL
 static u_int
 ipf_pcksum6(fin, ip6, off, len)
 	fr_info_t *fin;
@@ -10287,6 +10286,7 @@ ipf_pcksum6(fin, ip6, off, len)
 	u_int32_t off;
 	u_int32_t len;
 {
+#ifdef	_KERNEL
 	struct mbuf *m;
 	int sum;
 
@@ -10297,15 +10297,7 @@ ipf_pcksum6(fin, ip6, off, len)
 
 	sum = in6_cksum(m, ip6->ip6_nxt, off, len);
 	return(sum);
-}
 #else
-static u_int
-ipf_pcksum6(fin, ip6, off, len)
-	fr_info_t *fin;
-	ip6_t *ip6;
-	u_int32_t off;
-	u_int32_t len;
-{
 	u_short *sp;
 	u_int sum;
 
@@ -10327,6 +10319,6 @@ ipf_pcksum6(fin, ip6, off, len)
 	sum += *sp++;
 	sum += *sp++;
 	return(ipf_pcksum(fin, off, sum));
-}
 #endif
+}
 #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912022055.xB2Kt8xb080181>