Re: Regarding skb and net_device.

2014-05-04 Thread Pranay Srivastava
On Saturday, May 3, 2014, Rami Rosen wrote: > Hi, Pranay, > > First, let's assume that you are talking about IPv4, though you did not > mention it explicitly. (The principles in IPv6 are quite similar, though) > > A packet is sent out in the usual case with the ip_queue_xmit() method. > The ip_qu

Re: Regarding skb and net_device.

2014-05-03 Thread Rami Rosen
Hi, Pranay, First, let's assume that you are talking about IPv4, though you did not mention it explicitly. (The principles in IPv6 are quite similar, though) A packet is sent out in the usual case with the ip_queue_xmit() method. The ip_queue_xmit() method calls the ip_route_output_ports() metho

Regarding skb and net_device.

2014-05-03 Thread Pranay Srivastava
Hi, This is probably a stupid question, but i'm not able to find the answer. How does the networking subsystem decides which device to use for sending the skb. Can some one please guide me to the particular code. I seem to get lost in there :( -- ---P.K.S ___