Help in tcp/ip source hacking

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

 



Hi,
  I am trying to understand the tcp/ip implementation.
I am stuck at the following point.

In function ip_queue_xmit which calls dev_queue_xmit(as I understood
earlier) after forming ip header I find following line of code.

skb->dst->output(skb);

Till now I thought output func is initialised to dev_queue_xmit.
I tried to print skb->data just before calling this output function
and at the begining of dev_queue_xmit.
The first printk showed only ip packet(without
header) and to my surprise second one at the beging of dev_queue_xmit
it printed with ethernet header.
Can anybody exlain what is the code flow between skb->dst->output and
dev_queue_xmit. And where this dst->output is being initialised. 

-- 
vamshi varma
vamshiv@onebox.com - email


__________________________________________________
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/



[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