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(const struct sk_buff * skb,
10 const struct sock_filter * fentry);
11
13 skb
14 buffer to run the filter on
15
16 fentry
17 filter to apply
18
20 Decode and apply filter instructions to the skb->data. Return length to
21 keep, 0 for none. skb is the data we are filtering, filter is the
22 array of filter instructions. Because all jumps are guaranteed to be
23 before last instruction, and last instruction guaranteed to be a RET,
24 we dont need to check flen. (We used to pass to this function the
25 length of filter)
26
28Kernel Hackers Manual 3.10 June 2019 SK_RUN_FILTER(9)