svn commit: r356253 - head/sys/netinet6

Gleb Smirnoff glebius at FreeBSD.org
Wed Jan 1 17:32:20 UTC 2020


Author: glebius
Date: Wed Jan  1 17:32:20 2020
New Revision: 356253
URL: https://svnweb.freebsd.org/changeset/base/356253

Log:
  In r343631 error code for a packet blocked by a firewall was
  changed from EACCES to EPERM.  This change was not intentional,
  so fix that.  Return EACCESS if a firewall forbids sending.
  
  Noticed by:	ae

Modified:
  head/sys/netinet6/ip6_output.c

Modified: head/sys/netinet6/ip6_output.c
==============================================================================
--- head/sys/netinet6/ip6_output.c	Wed Jan  1 17:31:43 2020	(r356252)
+++ head/sys/netinet6/ip6_output.c	Wed Jan  1 17:32:20 2020	(r356253)
@@ -898,7 +898,7 @@ again:
 		ip6 = mtod(m, struct ip6_hdr *);
 		break;
 	case PFIL_DROPPED:
-		error = EPERM;
+		error = EACCES;
 		/* FALLTHROUGH */
 	case PFIL_CONSUMED:
 		goto done;


More information about the svn-src-all mailing list