:: RootR ::  Hosting Order Map Login   Secure Inter-Network Operations  
 
sk_filter_trim_cap(9) - phpMan

Command: man perldoc info search(apropos)  


SK_FILTER_TRIM_CAP(9)                    Linux Networking                   SK_FILTER_TRIM_CAP(9)



NAME
       sk_filter_trim_cap - run a packet through a socket filter

SYNOPSIS
       int sk_filter_trim_cap(struct sock * sk, struct sk_buff * skb, unsigned int cap);

ARGUMENTS
       sk
           sock associated with sk_buff

       skb
           buffer to filter

       cap
           limit on how short the eBPF program may trim the packet

DESCRIPTION
       Run the eBPF program and then cut skb->data to correct size returned by the program. If
       pkt_len is 0 we toss packet. If skb->len is smaller than pkt_len we keep whole skb->data.
       This is the socket level wrapper to BPF_PROG_RUN. It returns 0 if the packet should be
       accepted or -EPERM if the packet should be tossed.

COPYRIGHT
Kernel Hackers Manual 4.8.                 January 2017                     SK_FILTER_TRIM_CAP(9)


/man
rootr.net - man pages