sk_run_filter
Prev | Socket Filter | Next

## Name

sk_run_filter — run a filter on a socket

## Synopsis

`unsigned int sk_run_filter (` | const struct sk_buff * skb,
| const struct sock_filter * fentry`)`;

## Arguments

`skb`

  buffer to run the filter on

`fentry`

  filter to apply

## Description

Decode and apply filter instructions to the skb->data. Return length to keep, 0 for none. `skb` is the data we are filtering, `filter` is the array of filter instructions. Because all jumps are guaranteed to be before last instruction, and last instruction guaranteed to be a RET, we dont need to check flen. (We used to pass to this function the length of filter)

Prev | Up | Next
sk_filter | Home | sk_chk_filter