svn commit: r356253 - head/sys/netinet6

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Wed, 1 Jan 2020 17:32:20 +0000 (UTC)
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)
_at__at_ -898,7 +898,7 _at__at_ again:
 		ip6 = mtod(m, struct ip6_hdr *);
 		break;
 	case PFIL_DROPPED:
-		error = EPERM;
+		error = EACCES;
 		/* FALLTHROUGH */
 	case PFIL_CONSUMED:
 		goto done;
Received on Wed Jan 01 2020 - 17:32:20 UTC