I just cloned the mainline linux
repo to find the definition of udp_deliver
. I do not believe that function is implemented any more in the kernel, as using grep
does not yield any hits.
$ grep -r udp_deliver linux
$ grep -r *udp_deliver* linux
They both yield nothing. I can only find reference to udp_deliver
in early versions of the Linux kernel, namely 1.0.13, 1.1.72, 1.3.22, 1.3.47 and some other early versions.
The definition given in these early source files is as follows:
static inline void udp_deliver(struct sock *sk, struct sk_buff *skb)
{
skb->sk = sk;
if (sk->users) {
__skb_queue_tail(&sk->back_log, skb);
return;
}
udp_queue_rcv_skb(sk, skb);
}