summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_socket.c
diff options
context:
space:
mode:
authortih <tih@NetBSD.org>2018-03-16 17:12:04 +0000
committertih <tih@NetBSD.org>2018-03-16 17:12:04 +0000
commit8c3f691180463cf475f8ae02eb034232fd7b6c1c (patch)
treeefcedea86cc9fce1ca25d9dea3e88382ae7fd6b8 /sys/compat/linux/common/linux_socket.c
parent9e10f27ab479b57161238b1e339d286b0acedce7 (diff)
Add packet filtering to tun(4) interfaces.
Calls to pfil_run_hooks() were missing in if_tun.c. This meant that filtering configuration could be added to e.g. /etc/npf.conf, but would be ignored, because the filter never saw the packets. This change adds the required calls. While here, correct the return value from tun_output(): it's been returning 0 regardless of any error condition present, but will now correctly propagate such information upward. Thanks to maxv for guidance! OK: christos, martin
Diffstat (limited to 'sys/compat/linux/common/linux_socket.c')
0 files changed, 0 insertions, 0 deletions