Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Jul 2016 12:17:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-pf@FreeBSD.org
Subject:   [Bug 207598] pf adds icmp unreach on gre/ipsec somehow
Message-ID:  <bug-207598-17777-x5h59O5yzH@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-207598-17777@https.bugs.freebsd.org/bugzilla/>
References:  <bug-207598-17777@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207598

--- Comment #37 from commit-hook@freebsd.org ---
A commit references this bug:

Author: kp
Date: Sat Jul  9 12:17:01 UTC 2016
New revision: 302497
URL: https://svnweb.freebsd.org/changeset/base/302497

Log:
  pf: Map hook returns onto the correct error values

  pf returns PF_PASS, PF_DROP, ... in the netpfil hooks, but the hook calle=
rs
  expect to get E<foo> error codes.
  Map the returns values. A pass is 0 (everything is OK), anything else mea=
ns
  pf ate the packet, so return EACCES, which tells the stack not to emit an
ICMP
  error message.

  PR:   207598

Changes:
  head/sys/netpfil/pf/pf_ioctl.c

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207598-17777-x5h59O5yzH>