eth_header () ?

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

 



hi all,
         iam new to networking code in the Linux kernel, i wanted to know when is the below mentioned function called.I
added a printk() in there, and when i try ping'ing machines i cude see my mesg on the screen only once probably when the
first packet goes out on the network, and later randomly after the 5th packet being sent out.

int eth_header(struct sk_buff *skb, struct net_device *dev, unsigned short type,
                                         	   void *daddr, void *saddr, unsigned len)

could someone explain why this is happening ? is it because the eth_header is called only once per socket() call ? as it
appears to be ? 

cheers,
Amith

--
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