1SK_FILTER(9)                   Linux Networking                   SK_FILTER(9)
2
3
4

NAME

6       sk_filter - run a packet through a socket filter
7

SYNOPSIS

9       int sk_filter(struct sock * sk, struct sk_buff * skb);
10

ARGUMENTS

12       sk
13           sock associated with sk_buff
14
15       skb
16           buffer to filter
17

DESCRIPTION

19       Run the filter code and then cut skb->data to correct size returned by
20       sk_run_filter. If pkt_len is 0 we toss packet. If skb->len is smaller
21       than pkt_len we keep whole skb->data. This is the socket level wrapper
22       to sk_run_filter. It returns 0 if the packet should be accepted or
23       -EPERM if the packet should be tossed.
24
26Kernel Hackers Manual 2.6.         June 2019                      SK_FILTER(9)
Impressum