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

NAME

6       skb_kill_datagram - Free a datagram skbuff forcibly
7

SYNOPSIS

9       int skb_kill_datagram(struct sock * sk, struct sk_buff * skb,
10                             unsigned int flags);
11

ARGUMENTS

13       sk
14           socket
15
16       skb
17           datagram skbuff
18
19       flags
20           MSG_ flags
21

DESCRIPTION

23       This function frees a datagram skbuff that was received by
24       skb_recv_datagram. The flags argument must match the one used for
25       skb_recv_datagram.
26
27       If the MSG_PEEK flag is set, and the packet is still on the receive
28       queue of the socket, it will be taken off the queue before it is freed.
29
30       This function currently only disables BH when acquiring the
31       sk_receive_queue lock. Therefore it must not be used in a context where
32       that lock is acquired in an IRQ context.
33
34       It returns 0 if the packet was removed by us.
35
37Kernel Hackers Manual 2.6.         June 2019              SKB_KILL_DATAGRAM(9)
Impressum