sk_attach_filter(9)

sk_attach_filter9

Attach a socket filter

Usage

int sk_attach_filter(struct sock_fprog * fprog, struct sock * sk);

Arguments

fprog

the filter program

sk

the socket to use

Overview

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.

Releases

2 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7
  2. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.