table of contents
other versions
- wheezy-backports 3.16.39-1+deb8u1~bpo70+1
- jessie 3.16.43-2
__SK_ATTACH_FILTER(9) | Linux Networking | __SK_ATTACH_FILTER(9) |
NAME¶
__sk_attach_filter - attach a socket filterSYNOPSIS¶
int
__sk_attach_filter(struct sock_fprog * fprog,
struct sock * sk,
bool locked);
ARGUMENTS¶
fprogthe filter program
sk
the socket to use
locked
-- undescribed --
DESCRIPTION¶
Attach the user's filter code. We first run some sanity checks on it to make sure it does not explode on us later. If an error occurs or there is insufficient memory for the filter a negative errno code is returned. On success the return is zero.COPYRIGHT¶
February 2017 | Kernel Hackers Manual 3.16 |