sk_unattached_filter_create(9)

sk_unattached_filter_create9

Create an unattached filter

Usage

int sk_unattached_filter_create(struct sk_filter ** pfp, struct sock_fprog_kern * fprog);

Arguments

pfp

the unattached filter that is created

fprog

the filter program

Overview

Create a filter independent of any socket. 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.

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.