Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2018 21:20:54 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r341265 - head/sys/contrib/ipfilter/netinet
Message-ID:  <201811292120.wATLKsY1078678@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Thu Nov 29 21:20:53 2018
New Revision: 341265
URL: https://svnweb.freebsd.org/changeset/base/341265

Log:
  Remove an old comment/code and replace with a comment that
  directly references a NetBSD commit.
  
  MFC after:	1 week

Modified:
  head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c

Modified: head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
==============================================================================
--- head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c	Thu Nov 29 21:10:18 2018	(r341264)
+++ head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c	Thu Nov 29 21:20:53 2018	(r341265)
@@ -542,12 +542,7 @@ ipf_send_icmp_err(type, fin, dst)
 
 	code = fin->fin_icode;
 #ifdef USE_INET6
-#if 0
-	/* XXX Fix an off by one error: s/>/>=/
-	 was:
-	 if ((code < 0) || (code > sizeof(icmptoicmp6unreach)/sizeof(int)))
-	 Fix obtained from NetBSD ip_fil_netbsd.c r1.4: */
-#endif
+	/* See NetBSD ip_fil_netbsd.c r1.4: */
 	if ((code < 0) || (code >= sizeof(icmptoicmp6unreach)/sizeof(int)))
 		return -1;
 #endif



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