Re: Missing header files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
The sock_queue_rcv_skb function is used to handle
incoming data flow control for example:       
sk=my_find_socket(whatever);
if(sock_queue_rcv_skb(sk,skb)==-1)
 {
   myproto_stats.dropped++;
   kfree_skb(skb,FREE_READ);
   return;
 }

This function uses the socket read queue counters to
prevent vast amounts of data being queued to a socket.
After a limit is hit, data is discarded.

Regards,
Dharmender Rai


 --- paridhi bansal <paridhibansal@yahoo.com> wrote: >
hello everybody!!
> 
> I have included linux/skbuff.h in my program.When i
> compile this program, it gives me error that
> asm/msr.h
> and asm/fixmap.h are not in /usr/include.
> 
> Redhat site has the updated rpm for this bug in
> linux
> 7.3. But even aftyer installing that rpm, the files
> are still missing....What is the way out for this
> problem??
> 
> 
> One more question. If i have a  socket bound to an
> interface. Will this fn --- sock_queue_rcv_skb(s1,
> skb)
> work for getting the packets from that interface???
> 
> To put the packets on an interface , what fn is to
> be
> used??
> 
> 
> paridhi
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.yahoo.com
> --
> Kernelnewbies: Help each other learn about the Linux
> kernel.
> Archive:      
> http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
>  

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux