-1

I tried to find the above api in linux kerenl. If I go to this path: net/ipv4/udp.c and search for udp_deliver. It is not there at that place. What is the reason for not finding the udp_deliver api ?? please someone help me. I dont have the above api in the above specified path.

PLEASE

1 Answers1

0

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);
}
aglasser
  • 3,059
  • 3
  • 13
  • 10