diff options
author | kp <kp@FreeBSD.org> | 2016-08-17 09:23:40 +0000 |
---|---|---|
committer | kp <kp@FreeBSD.org> | 2016-08-17 09:23:40 +0000 |
commit | b2510ea59a0b78c537510273b5c222c155863493 (patch) | |
tree | df73edd1a9a9873b748f79aed5ffc80db4d0dfcf /lib/libc | |
parent | 471a2ade16670fd53873bb44aa263c1d58a6f513 (diff) | |
download | FreeBSD-src-b2510ea59a0b78c537510273b5c222c155863493.zip FreeBSD-src-b2510ea59a0b78c537510273b5c222c155863493.tar.gz |
MFC r302497:
pf: Map hook returns onto the correct error values
pf returns PF_PASS, PF_DROP, ... in the netpfil hooks, but the hook callers
expect to get E<foo> error codes.
Map the returns values. A pass is 0 (everything is OK), anything else means
pf ate the packet, so return EACCES, which tells the stack not to emit an ICMP
error message.
PR: 207598
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions