1SK_RUN_FILTER(9) Linux Networking SK_RUN_FILTER(9)
2
3
4
6 sk_run_filter - run a filter on a socket
7
9 unsigned int sk_run_filter(struct sk_buff * skb,
10 struct sock_filter * filter, int flen);
11
13 skb
14 buffer to run the filter on
15
16 filter
17 filter to apply
18
19 flen
20 length of filter
21
23 Decode and apply filter instructions to the skb->data. Return length to
24 keep, 0 for none. skb is the data we are filtering, filter is the array
25 of filter instructions, and len is the number of filter blocks in the
26 array.
27
29Kernel Hackers Manual 2.6. June 2019 SK_RUN_FILTER(9)